Regex Explainer
Paste any regular expression and get a clear, token-by-token explanation of what each part does.
/
/
Explanation
How to explain a regular expression
1Paste the regular expression you want to understand.
2Click Explain.
3Read the plain-English breakdown of each token.
Which constructs are supported?
The explainer covers anchors, character classes, quantifiers, groups, lookaround, escapes, backreferences and more — the common JavaScript regex syntax.
Will it tell me if my regex is invalid?
Yes. If the pattern can't compile, the explainer shows the exact error instead of an explanation.