Regex Cheatsheet - Regular Expression Quick Reference

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

Share
Back to Regex Cheatsheet

Negated Character Class [^abc]

Character Class

Matches any character NOT in brackets

Pattern

[^abc]

Syntax

Explanation

[^...] matches any character not in the set. [^0-9] matches any non-digit.

Examples

[^0-9]

Matches non-digit

Matches: a, X, $

Related Tools

More Text Tools