stri_match_all_regex: Extract Regex Pattern Matches, Together with Capture Groups
Description
These functions extract substrings of str that
match a given pattern, and also give matches for capture
groups, i.e. subpatterns given in round parentheses.
character vector of regular expressions to search for
opts_regex
a named list with ICU Regex settings
as generated with stri_opts_regex; NULL
for default settings
Value
For stri_match_all_regex,
a list of character matrices is returned.
Otherwise, a character matrix is given.
NA if not found or if given capture group is unavailable.
The first column gives the whole match. The second one corresponds to
the first capture group, the third -- the second capture group, and so on.