Regular expressions pcre2 · Lookahead and lookbehind
Match only if not followed by something
Match a number that is not followed by px.
\d+(?!px)\b
Official Regular expressions pcre2 documentation
More lookahead and lookbehind commands
- Match only if followed by something
- Match only if preceded by something
- Match only if not preceded by something
- Require several conditions at once
All lookahead and lookbehind commands · Regular expressions pcre2 cheatsheet