Assertion
↔ RegExp Syntax to define boundary of lines/words
^
RegExp
Assertion to negate Character Class or only match start of line
$
RegExp
Assertion to match n
expression at end of line
|
RegExp
Assertion OR operator for alternative characters/expressions
\b
RegExp
Assertion to match only at boundary of word (beginning or end of word)
\B
inverted RegExp
Assertion to match only at not boundary of word (beginning or end of word)
n(?=abc)
Positive Lookahead to match n
only if abc
exists ahead
n(?!abc)
Negative Lookahead to match n
only if abc
not exist ahead
(?<=abc)n
Positive Lookbehind Assertion to match n
only if abc
exists before
(?<!abc)n
Negative Lookbehind to match n
only if abc
not exist before
References
^
↔RegExp
Assertion to negate Character Class or only match start of line|
↔RegExp
Assertion OR operator for alternative characters/expressions\B
↔ invertedRegExp
Assertion to match only at not boundary of word (beginning or end of word)\b
↔RegExp
Assertion to match only at boundary of word (beginning or end of word)Flag
↔ optional modifier forRegExp
to config how Assertion behave on patterns