Skip to content

About the Regex Tester

Test a regular expression with JavaScript semantics: matches with positions and groups, replace preview and split. It runs in a worker with a time limit, so a catastrophic pattern cannot freeze the page.

How to use it

Examples

Questions

What does the time limit protect against?
Some patterns, such as nested repeats like (a+)+, can take exponential time on certain text (catastrophic backtracking). The test runs in a separate worker that is stopped after one second, so your tab stays responsive.
Will my pattern behave the same in my program?
Only if your program uses JavaScript regular expressions. Other languages differ in syntax and features.
Is my input uploaded?
No. Everything is calculated in your browser tab and nothing is uploaded or stored.

Free and runs in your browser. Sign in only if you want to save your work.