R/util.R
string_match.Rd
Similar to the stringr::str_match and Javascript String.match.
stringr::str_match
String.match
string_match(string, regex)
The string to match
The regex to match against
A character vector of the match including groups. NULL if no match.