
62 vFoglight
Command-Line Reference Guide
(?=X)
Checks if the preceding character is followed by X in a
text string, without making X a part of the search result.
For example, when the construct
H(?=e) is matched
against
Hello world, it returns the H in the string
without making the
e that follows it a part of the result.
(?!X)
Checks if the preceding character is preceded by X in a
text string, without making X a part of the search result.
For example, when the construct
e(?!H) is matched
against
Hello world, it returns the e in the string
without making the
H that precedes it a part of the result.
(?<=X)
Checks if the following character is followed by X in a
text string, without making X a part of the search result.
For example, when the construct
(?<=w)o is matched
against
Hello world, it returns the o in world, without
making the
w a part of the result, but not the o in Hello.
Returns
A via zero-width positive look behind.
(?<!X)
Checks if the following character is preceded by X,
without making X a part of the search result.
For example, when the construct
(?<!o)w is matched
against
Hello world, it returns the w in world, without
making the
w a part of the result.
Boundary matching
^
The beginning of a line.
$
The end of a line.
\b
A word boundary. Used as a delimiter, it implies that the
construct between the delimiters should be matched only
in those text strings that contain alpha-numeric characters
and are delimited by non-word character such as spaces
or punctuation marks. For example, the construct
\bdog\b finds one match of dog in the string My dog
is black
, and no matches in My dogs are black.
Syntax Description
Comentarios a estos manuales