Description Usage Arguments Value See Also Examples
Given a text, find all the tokens that match a regex(es). This function is
particularly useful with replace_tokens
.
1 | match_tokens(x, pattern, ignore.case = TRUE, ...)
|
x |
A character vector. |
pattern |
Character string(s) to be matched in the given character vector. |
ignore.case |
logical. If |
... |
ignored. |
Returns a vector of tokens from a text matching a specific regex pattern.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.