Uses regexpr()
internally without regmatches()
.
Arguments
- x
character
. Character vector.NA
values are allowed.- pattern
character(1)
. Regular expression pattern. Evalutes withregexpr()
internally.- fixed
logical(1)
. IfTRUE
,pattern
is a string to be matched as is. Otherwise, will match by regular expression.