Description Usage Arguments Value Functions
Be careful: this may throw funny results for exotic regex, but so far, it seems okay. it also drops the first result which always seems to be a duplicate or whole-string match
1 2 3 | str_multi_match(pattern, text, dropEmpty = FALSE, ...)
strMultiMatch(pattern, text, dropEmpty = FALSE, ...)
|
pattern |
regular expression: if it has bracketed sections, these submatches are returned |
text |
is the string to match against. This vector should be the same length as the pattern vector, or the patern vector should be length one. |
dropEmpty |
logical whether to drop rows with no matches |
... |
are additional parameters passed to regexec and regmatches. I haven't tried this: it may need two separate variables containing lists of params, since this will send everything to both functions. |
list of character vectors, list length being the length of the inptu text vector.
strMultiMatch
: Deprecated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.