Uses gregexpr()
and regmatches()
internally.
Arguments
- x
character
. Character vector.NA
values are allowed.- pattern
character(1)
. Regular expression pattern. Evalutes withgregexpr()
internally.- fixed
logical(1)
. IfTRUE
,pattern
is a string to be matched as is. Otherwise, will match by regular expression.
Value
list
.
List of character vector extractions.
Returns character(0L)
for match failure, NA_character_
for NA
.