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. Powered by Amazon Nova Micro on AWS Bedrock.
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
Test your AI fundamentals next
If this tool is part of your AI or developer workflow, the free CloudYeti diagnostic shows which AWS AI concepts you already know and where you are weak.
Take the AI diagnosticFrequently 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
Improve My Prompt
Paste any LLM prompt and get specific, actionable fixes against 12 best-practice rules from Anthropic, OpenAI, and Google. Free, no login.
CLAUDE.md Reviewer
Paste your existing CLAUDE.md and get specific, numbered suggestions for vague rules, missing commands, repo boundaries, and token waste.
Word & Character Counter
Count words, characters, sentences, and reading time in Markdown. Free online Markdown-aware word counter.
Link Extractor
Extract all URLs and links from Markdown text. Free online Markdown link extractor.
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 Amazon Bedrock endpoint to generate the result. No account is required. MarkdownMe provides free, fast, and reliable Markdown tools for developers, writers, and anyone who works with Markdown.