Regex Tester & Explainer
Test regular expressions with real-time match highlighting, named groups, and plain-English explanation of each part.
| # | Match | Start | End | Groups |
|---|---|---|---|---|
| 1 | hello@example.com | 14 | 31 | #1: hello#2: example.com |
| 2 | support@editingtools.tech | 35 | 60 | #1: support#2: editingtools.tech |
About this tool
Regular expressions are powerful patterns for matching, searching, and manipulating text. Writing and debugging them can be tricky — this tool makes it visual and interactive.
Paste your regex and test string, and matches are highlighted in real-time. The tool shows every match, capture group, and named group in a structured table. Hover over any match to see its exact position (start/end index).
The explanation panel breaks down each token in your regex into plain English — for example, \d{3}-\d{4} is explained as "exactly 3 digits, a literal hyphen, exactly 4 digits".
Supports all JavaScript regex flags: g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode), and d (indices).
Frequently Asked Questions
What regex flavor does this use?
How do I use named capture groups?
What does the 's' flag do?
How do I match a literal dot?
Related Tools
String Escape
Escape and unescape strings for JavaScript, JSON, HTML, SQL, and regex. Handle special characters safely.
Text Counter
Count words, characters, sentences, paragraphs, and reading time. Keyword density analysis included.
Diff Checker
Compare two texts side-by-side with highlighted differences. Supports plain text and smart JSON-aware diffing.
Case Converter
Convert text between camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE, Title Case, and more instantly.