joinRegex | R Documentation |
This function simply joins a vector of regex characters by union,
and produces a single character regex in the form of (foo)|(bar)
.
joinRegex(...)
... |
character vectors of the regex expressions to join. Both vectors and individual characters of any length will work |
a character of the unioned regex
joinRegex(c("^foo", "bar$"))
joinRegex("^foo", "bar$", "[bB]az")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.