Form the disjunction of the given regular expression patterns. For example if patterns contains
"a" and "b" then the disjunction is "(a|b)", that is, "a or b".
Form the disjunction of the given regular expression patterns. For example if patterns contains
"a" and "b" then the disjunction is "(a|b)", that is, "a or b".
Attributes
patterns
an array of regular expression patterns
Returns:
a pattern that matches if any of the input patterns match
Form the disjunction of the given regular expression patterns. For example if patterns contains
"a" and "b" then the disjunction is "(a|b)", that is, "a or b".
Form the disjunction of the given regular expression patterns. For example if patterns contains
"a" and "b" then the disjunction is "(a|b)", that is, "a or b".
Attributes
patterns
a set of regular expression patterns
Returns:
a pattern that matches if any of the input patterns match