📖
dev

Regex Cheat Sheet

Interactive regular expression reference with categories. Click to copy patterns. Includes a live regex tester for your patterns.

regex cheat sheetregular expression referenceregex guideregex patternsregex tutorial

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.

Categories
5
Patterns
20
Flags
4

Anchors

4 patterns

Quantifiers

4 patterns

Groups

4 patterns

Character classes

4 patterns

Lookaround

4 patterns

Live tester

Test a pattern instantly

Choose a snippet from the cheat sheet or type your own regex to see highlighted matches.
Matches
0
Characters scanned
0

Highlighted output

Live preview
Run a regex to see highlighted matches here.

Match list

Index + value

How to use

How to Use the Regex Cheat Sheet

  1. 1 Browse regex patterns by category: anchors, quantifiers, groups, character classes, and lookaround.
  2. 2 Click any pattern to copy it to your clipboard instantly.
  3. 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