Regular expressions pcre2 · Lookahead and lookbehind
Match only if preceded by something
Match the digits after a dollar sign, without including the sign.
(?<=\$)\d+
Official Regular expressions pcre2 documentation
More lookahead and lookbehind commands
- Match only if followed by something
- Match only if not followed by something
- Match only if not preceded by something
- Require several conditions at once
All lookahead and lookbehind commands · Regular expressions pcre2 cheatsheet