Regular Expression - Logical Matcher

About

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

Syntax

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

Example

gray|grey matches:

  • gray
  • and grey

Powered by ComboStrap