joinRegex: Join regex expressions by union

View source: R/regex.R

joinRegexR Documentation

Join regex expressions by union

Description

This function simply joins a vector of regex characters by union, and produces a single character regex in the form of (foo)|(bar).

Usage

joinRegex(...)

Arguments

...

character vectors of the regex expressions to join. Both vectors and individual characters of any length will work

Value

a character of the unioned regex

Examples

joinRegex(c("^foo", "bar$"))
joinRegex("^foo", "bar$", "[bB]az")


FastUtils documentation built on Sept. 11, 2024, 5:13 p.m.