Uses gregexpr() and regmatches() internally.
Arguments
- x
character. Character vector.NAvalues are allowed.- pattern
character(1). Regular expression pattern. Evalutes withgregexpr()internally.- fixed
logical(1). IfTRUE,patternis 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.