multiMatch | R Documentation |
Seek all elements matching a given pattern in a character strings.
multiMatch(text, pattern)
text |
a character vector where matches are sought, or an object which
can be coerced by as.character to a character vector, see |
pattern |
character string containing a regular expression to be
matched in the given character vector, see |
multiMatch
is essentially a wrapper around base::regexec()
and
base::regmatches()
to find more than one match.
A vector of character strings matching pattern
argument.
multiMatch(loremIpsum(), " [[:alnum:]]{3} ")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.