https://devtools.solutions/tools/regex/regex-debug.html

Debug Regex Matches

Debug a regular expression by seeing all match groups, indices, and captured values for your test input.

Regex Debugger


    

Frequently Asked Questions

How is this different from a regex tester?

This view focuses on debugging output and match indexing for quick troubleshooting.

Which flags are supported?

JavaScript flags like g, i, m, s, u, and y are supported.

Is input data uploaded?

No. Everything runs locally in your browser.

Example input/output

Input: Pattern: (\w+)@(\w+) / Input: user@domain

Output: Match 0: user@domain / Group 1: user / Group 2: domain

How it works

This tool runs the regex against the input and returns the full match result object, including match index, input string, captured groups (by index and name), and indices if the d flag is set. Processing runs in your browser.

Common use cases

Related tools