str_match {stringr} | R Documentation |
Extract first matched group from a string.
str_match(string, pattern)
string |
input character vector |
pattern |
with groups |
character matrix. First column is the complete match, followed by one for each capture group