Skip to content

How Regex Tester works

Enter a JavaScript regular expression and test string to see matches highlighted in real time with capture group details.

Executes patterns in a Web Worker with a 3-second timeout to protect against catastrophic backtracking.

Questions

Which regex flavor is used?
The tool uses JavaScript's built-in RegExp engine, which supports most Perl-compatible syntax including lookaheads and named groups.
What happens with slow patterns?
Patterns run in a Web Worker with a 3-second timeout. If the pattern causes excessive backtracking, you will see a warning.
Which flags are available?
Global (g), case-insensitive (i), multiline (m), and dotall (s). Toggle them with the buttons above the pattern input.
Is there a match limit?
Yes. The tool displays up to 100 matches and stops execution after 10,000 matches to prevent the browser from freezing.

More Generate tools

All the tools · How to check that nothing is sent

Regex Tester & Debugger | Only in the Tab