Regex Cheatsheet - Regular Expression Quick Reference

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

Share
Back to Regex Cheatsheet

Between n and m {n,m}

Quantifier

Matches preceding expression between n and m times

Pattern

{n,m}

Examples

\d{2,4}

Matches 2 to 4 digits

Matches: 12, 123, 1234

a{2,4}b

Matches 2-4 a's followed by b

Matches: aab, aaaab

Related Tools

More Text Tools