Regex Tester / Debugger
Live regex testing with match highlighting, captured groups, and flag controls.
About this tool
The Regex Tester evaluates your regular expression against test text in real time as you type, highlighting matches and showing captured groups. Supports all JavaScript regex flags: g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode), and d (indices).
Regular expressions are one of the most powerful and frequently misread tools in programming. Debugging them in code means a slow edit-run-print cycle. This tool gives you instant feedback: paste your test string, enter your pattern, and see every match highlighted as you refine the expression. Named capture groups are shown in a structured table alongside their indices.
Match details include: total match count, per-match start/end indices, the full match text, and the value of each capture group (including named groups). When the regex is invalid, a specific error message is shown. The pattern and flags persist in the URL so you can share a working regex with a colleague. All evaluation uses the browser's native RegExp engine — no server, no transpilation.