Regex cheatsheet — patterns by task
A searchable quick reference for regular-expression syntax — character classes, quantifiers, groups and anchors. It runs in your browser (0 uploads, works offline).
How to use it
- Enter or paste your input above.
- The result appears live on your device.
- Copy or Download it.
FAQ
What does \d (or any regex token) mean?
\d matches a single digit; \w a word character, \s whitespace. Search any token on this page and its meaning appears instantly, offline, covering the syntax shared by JavaScript, PCRE and most engines.
How do I match one or more of something?
Use + for one-or-more, * for zero-or-more, ? for optional, and {n,m} for a specific range. The cheatsheet lists all the quantifiers with notes.
Is anything uploaded?
No — the reference is bundled and searched on your device; it works offline.
What is a capturing group?
(…) captures the matched text for reuse or extraction; (?:…) groups without capturing. Both are in the cheatsheet.
Limits
Covers common tokens shared across engines; engine-specific extensions vary.
Related
The regex tester (coming soon) runs patterns; regex find-and-replace applies them to text.
Bookmark this page (Ctrl+D, or ⌘D on Mac) or install the app — it works offline the next time you need it.