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 |
A vector of character strings matching pattern argument.
multiMatch is essentially a wrapper around base::regexec() and
base::regmatches() to find more than one match.
#> [1] " sit " " sed " " qui " " est " " est " " nec " " est " " sed " " hac "