Regular Expression - Logical Matcher

Regexp

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





Discover More
Card Puncher Data Processing
Antlr - Parser Rule

in Antlr. Parser rule is the second type of rule for Antlr. They begin with a lowercase letter. The lexer rules specify the tokens whereas the parser rules specify the tree. URL URI See ...
Compiler
Grammar - Rule Construct / Basic Rule Expression

This page lists common rule expression in order to describe the structure of the parsed document. A rule expression is a pattern expression that produces a boolean and are therefore predicate. grammar...
Regexp
Multilingual Regular Expression Syntax (Pattern)

Regular expression are Expression that defines a pattern in text. This is therefore a language that permits to define structure of a text. They are a mathematically-defined concept, invented by Stephen...
Regexp
Regular Expression - Meta-(symbols|characters) - Operator

There are two different sets of meta-characters: those that are recognized anywhere in the pattern except within square brackets, and those that are recognized in square brackets. Operator...



Share this page:
Follow us:
Task Runner