Regular expressions pcre2 · Lookahead and lookbehind
Match only if followed by something
Match a number only when it is followed by px, without including px in the match.
\d+(?=px)
Official Regular expressions pcre2 documentation
More lookahead and lookbehind commands
- Match only if not 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