Regex Tester
Test a regular expression against sample text, with flags, match positions, capture groups and a live highlighted result.
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.