Regular Expression - Logical Matcher


Logical matcher represents:

  • the AND operation (which is a follow operation in a regular expression)
  • and the OR.

The character '^' in a class represents a NOT operator


Construct Matches
XY X followed by Y
X|Y Either X or Y

The | is the Boolean “or”. It start of alternative branch to specify alternative matches


gray|grey matches:

  • gray
  • and grey

Powered by ComboStrap