Skip to content

Regex Explainer

Embed

Paste this where you want Regex Explainer on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/regex-explainer/" width="100%" height="500" frameborder="0" loading="lazy" title="Regex Explainer"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/regex-explainer/">Regex Explainer</a> by BrowserUtils</p>

Get plain English explanations of regex patterns.Runs in this tab.

Next step

About Regex Explainer

Free online regex explainer. Paste a regular expression and get a detailed, token-by-token breakdown in plain English. It runs in your browser. Nothing is sent to a server.

Questions

What regex tokens are explained?
The explainer covers literals, metacharacters (. ^ $ * + ? |), character classes ([abc], \d, \w, \s), quantifiers ({n,m}), groups (capturing, non-capturing, lookaheads), anchors, and backreferences.
Can I test my regex too?
For testing regex with match highlighting, use the companion Regex Tester tool. This tool focuses on explaining what each part of the pattern does.
Is the regex explainer useful for understanding someone else's code?
Yes, paste a regex you found in existing code and the explainer will break it down token by token in plain English so you can understand exactly what it matches.
Does the regex explainer handle lookaheads and lookbehinds?
Yes, lookahead (?=...) and lookbehind (?<=...) assertions are explained with descriptions of what they assert without consuming characters in the match.
Does the regex explainer work offline?
Yes, the pattern parsing and explanation generation run entirely in your browser. No internet connection is required after the page has loaded.

More in Text & String Utilities

All 28 text & string utilities