Regex Cheatsheet - Regular Expression Quick Reference

Quick reference for regular expression patterns. Character classes, quantifiers, anchors, and common patterns.

Share
Back to Regex Cheatsheet

Positive Lookbehind (?<=abc)

Assertion

Matches position preceded by specified expression (ES2018+)

Pattern

(?<=abc)

Syntax

Explanation

Positive lookbehind checks preceding text. Note variable-length lookbehind support varies.

Examples

(?<=\$)\d+

Match digits after $ sign

Matches: 100 in $100

(?<=@)\w+

Match username after @

Matches: example in @example

Related Tools

More Text Tools