Regex Cheat Sheet
Interactive regular expression reference with categories. Click to copy patterns. Includes a live regex tester for your patterns.
Regex reference
Interactive regex cheat sheet
Browse core regex building blocks, click any pattern to copy it, then test the expression against sample text in the live playground.
Quantifiers
4 patternsGroups
4 patternsCharacter classes
4 patternsLookaround
4 patternsLive tester
Test a pattern instantly
Highlighted output
Live previewMatch list
Index + valueHow to use
How to Use the Regex Cheat Sheet
- 1 Browse regex patterns by category: anchors, quantifiers, groups, character classes, and lookaround.
- 2 Click any pattern to copy it to your clipboard instantly.
- 3 Use the live tester section to paste your regex and test string to verify matches.
Regular expressions are powerful pattern matching tools used in every programming language. This reference covers the most common patterns with clear examples.
The live tester highlights all matches in your test string, making it easy to debug and refine your patterns before using them in code.
More Dev tools
Related tools
You might also like
dev
Regex Tester
Test regex patterns with live match highlighting, capture groups, flags, and reusable developer snippets.
dev
CSS Gradient Generator
Create beautiful CSS gradients with a visual editor. Choose linear or radial gradients, pick colors, adjust angles, and copy the CSS code instantly.
dev
CSS Box Shadow Generator
Design perfect CSS box-shadow effects with a visual editor. Adjust offset, blur, spread, color, and inset to create shadows and copy ready-to-use CSS.
converter
JSON to CSV Converter
Convert JSON arrays to CSV and CSV to JSON instantly in your browser. Download CSV files with one click.