regex_build | R Documentation |
Create a regular expression from a character vector or list
regex_build(list, modifier = "single")
list |
A list of characters |
modifier |
Type of regex. 'single' will break every word into a separate section of the expression. 'multi' will allow phrases to be components of the expression. Defaults to 'single'. |
A regular expression
regex_build(c("apple", "banana", "carrot"))
regex_build(c("dog treats", "cereal", "Boston baked beans"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.