Regex Explainer
Get plain English explanations of regex patterns.Runs in this tab.⌘ ↵ runs it
Next step
AtriumKitFrom the team behind browserutils
Turn a click-through into an interactive demo
AtriumKit records your web app once in Chrome and turns every click into a step of a demo you can embed or share. There’s a free plan.
Try AtriumKit freeAbout 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.
Comments
More in Text & String Utilities
- Word Counter
- Regex Tester
- String Case Converter
- Slug Generator
- Text Diff
- Lorem Ipsum Generator
- Line Sorter & Deduplicator
- Text Reverse
Comments