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

All lookahead and lookbehind commands · Regular expressions pcre2 cheatsheet

Was this page helpful?