Regex Tester

Test a regular expression against sample text, with flags, match positions, capture groups and a live highlighted result.

Text · example: (\d+) items → match 0…1, group 1 = the number

How it works

The pattern runs with the flags you select; `g` and `y` are handled with a match loop so zero-length matches cannot hang the page.

Each match shows its index and capture groups, which is what you need when writing a replacement rather than just checking a match.

This tool runs entirely in your browser. NextName does not receive or store what you paste.