str_match: Extract first matched group from a string.
Description
Extract first matched group from a string.Usage
str_match(string, pattern)
Arguments
string
input character vector
Value
- character matrix. First column is the complete match, followed by
one for each capture group