Command Line Reference Guide

60 vFoglight
Command-Line Reference Guide
{n}, {n}?, or {n}+
When following a character, the construct implies that the
preceding character can appear exactly n times.
For example, each of the following constructs mean that
the character
X can appear exactly three times in the
result:
X{3}
X{3}?
X{3}+
{n,}, {n,}?, or {n,}+
When following a character, the construct implies that the
preceding character can appear at least n times.
For example, each of the following constructs mean that
the character
X can appear at least five times in the result:
X{5,}
X{5,}?
X{5,}+
{n,m}, {n,m}?, or {n,m}+
When following a character, the construct implies that the
preceding character can appear at least n, but no more
than m times.
For example, each of the following constructs mean that
the character
X can appear at least four, but no more than
eight times in the result:
X{4,8}
X{4,8}?
X{4,8}+
NM
The construct implies that both characters appear in the
given order: the first one (N) is followed by the second
character (M) in the result, treating the two-character
construct as a literal expression. For example, the
expression
XY returns XY as a match.
|
The logical OR operator. For example, the construct X|Y
mean that either
X or Y can appear in the result.
\Q
Quotes all characters in the expression until it reaches \E.
For example, the construct
\Qabc\E has the same
meaning as
"abc".
\E
Ends the quoting started by \Q.
Syntax Description