Regex Cheat Sheet/Negative lookbehind

Require text not to precede the current position.

Section: Lookarounds

Negative lookbehind

regex
regex
(?<!\$)\b\d+\b
Explanation

Matches bare numbers not immediately preceded by `$`.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Lookarounds
Positive lookbehind
Require text to precede the current position.
OpenIn sheetregexsame section
Positive lookahead
Require text to follow the current position.
OpenIn sheetregexsame section
Negative lookahead
Require text not to follow the current position.
OpenIn sheetregexsame section
Tempered dot
Match any text until a stopper without over-consuming.
OpenIn sheetregexsame section
Start of string
Match only at the beginning of the input.
Digit shorthand
Match one ASCII digit character.