Regex Explainer
Enter a regex pattern and instantly see every token explained in plain English, color-coded by type.
Regex Pattern
/
Enter a pattern on the left and click Explain
Or pick an example from the dropdown
Summary
Pattern breakdown
Token details
| # | Token | Type | Plain-English meaning |
|---|
Copied!
Summary
Enter a regex pattern and instantly see every token explained in plain English, color-coded by type.
How it works
- Type or paste a regex pattern in the Pattern field (no surrounding slashes needed).
- Optionally select any flags — g, i, m, s, or u.
- Click Explain (or select an example from the dropdown).
- Read the summary sentence and the token-by-token table below it.
- Each chip is color-coded by token type: anchor, literal, class, quantifier, group, lookaround, or escape.
Use cases
- Learning what an unfamiliar regex actually does.
- Documenting complex patterns for teammates.
- Debugging a regex by understanding each component.
- Teaching regular expressions step by step.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu