Regex Explainer
Paste any regex pattern and get a plain-English explanation: token-by-token breakdown of anchors, character classes, quantifiers, groups, lookaheads and lookbehinds; 2-3 strings that match and 2-3 that don't; and the most common gotcha to watch for (greedy vs lazy, escaping, anchoring). Works for PCRE, JavaScript, Python, Go, and Ruby regex flavors. AI-powered.
Token-by-token breakdown, what the regex matches, 2 example matches, 2 example non-matches, and one common gotcha to watch for.
What you get back
- • Token-by-token breakdown of anchors, classes, quantifiers
- • Named groups and capture groups called out
- • Lookaheads and lookbehinds explained
- • Example strings that match and don't match
- • One common gotcha (greedy vs lazy, escaping, etc.)
- • Works for PCRE, JS, Python, and Go regex flavors
Inputs to AI tools may be used to improve MarkdownMe. Data controls
Get new tools by email
We add tools most weeks. Give an email address and we send you the new ones, plus short notes on how to use them. No more than one email a week. Unsubscribe with one click.
Frequently Asked Questions
- How is this different from regex101?
- regex101 gives you a tokenizer view and live match testing — fantastic for building regex. This tool gives you a plain-English walkthrough of what a regex does, which is faster when you just need to understand a regex someone else wrote. Use both: regex101 to iterate, this tool to read.
- Does it handle lookbehinds and named groups?
- Yes. Named groups (<code>(?<name>...)</code>), lookaheads (<code>(?=...)</code>), negative lookaheads (<code>(?!...)</code>), lookbehinds (<code>(?<=...)</code>), and negative lookbehinds are all explained. It also flags when a lookbehind might not work in older regex engines (JavaScript pre-ES2018, for example).
- Will it tell me if my regex is wrong?
- It will tell you what the regex matches, and if that doesn't match what you meant, you'll know. For vulnerability checks (ReDoS, catastrophic backtracking) the tool flags obviously risky patterns but isn't a substitute for a dedicated static analyzer.
- Which regex flavor does the explanation assume?
- The tool infers the flavor from syntax cues. <code>(?<=...)</code> suggests PCRE or modern JS. <code>\d</code> is ambiguous. Python-specific syntax like <code>(?P<name>...)</code> is recognized. If you need a specific flavor called out, mention it in your paste.
Related Tools
CLAUDE.md Reviewer
Paste your existing CLAUDE.md and get specific, numbered suggestions for vague rules, missing commands, repo boundaries, and token waste.
Link Extractor
Extract all URLs and links from Markdown text. Free online Markdown link extractor.
Heading Extractor
Extract all headings from a Markdown document as a structured outline. Free online heading extractor.
Markdown Diff
Compare two Markdown documents side by side. Free online Markdown diff tool with highlighted changes.
About Regex Explainer
Paste any regex, get a token-by-token breakdown, sample matches, and common gotchas. Free, no login. This AI-backed tool sends your input to MarkdownMe's capped AI endpoint to generate the result. You choose whether we keep it to improve the tools. See the privacy page. No account is required. MarkdownMe provides free, fast, and reliable Markdown tools for developers, writers, and anyone who works with Markdown.