This function is a thin wrapper on the gregexpr
base R function, to provide an API that is easier to use. It is
similar to re_match
, but extracts all matches, including
potentially named capture groups.
re_match_all(pattern, text, ...)
A list of character matrices. Each list element contains the
matches of one string in the input character vector. Each matrix
has a .match
column that contains the matching part of the
string. Additional columns are added for capture groups. For named
capture groups, the columns are named.