HTML Runner

Regex Tester

Check JavaScript regular expressions with match highlighting, flags and capture groups.

How to use Regex Tester

Enter a pattern without slash delimiters. Use g to find all matches and inspect the numbered or named groups in the output.

Limitations

The worker stops after a short timeout. Results are capped at 150 matches, and offsets count UTF-16 code units.

Frequently asked questions

Why did my pattern time out?

Nested repetitions can cause excessive backtracking. Test a shorter input or rewrite the repeated groups.

Test your web code in the live HTML workspace.

Related resources