Regex Cheatsheet - Regular Expression Quick Reference

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

Share
Back to Regex Cheatsheet

Exactly n {n}

Quantifier

Matches preceding expression exactly n times

Pattern

{n}

Examples

\d{4}

Matches exactly 4 digits

Matches: 2024, 1234

a{3}

Matches exactly 3 a's

Matches: aaa

Related Tools

More Text Tools