Regex Cheatsheet - Regular Expression Quick Reference

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

Share
Back to Regex Cheatsheet

Negative Lookbehind (?<!abc)

Assertion

Matches position NOT preceded by specified expression (ES2018+)

Pattern

(?<!abc)

Examples

(?<!\$)\d+

Match digits not after $

Matches: 50 in €50

(?<!\-)word

Match "word" not preceded by hyphen

Matches: password

Related Tools

More Text Tools