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