AbstractRegexReplacementRule

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def disjunction(patterns: Array[String]): String

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".

Value Params
patterns

an array of regular expression patterns

Returns

a pattern that matches if any of the input patterns match

def disjunction(patterns: Set[String]): String

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".

Value Params
patterns

a set of regular expression patterns

Returns

a pattern that matches if any of the input patterns match