re_match_all | R Documentation |
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, ...)
pattern |
Regular expression, defaults to be a PCRE
expression. See |
text |
Character vector. |
... |
Additional arguments to pass to
|
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.