Regex Backtracking and ReDoS Checker
Run a regex on a test string with a step budget, see how many attempts the engine makes, and get a warning when the work explodes from catastrophic backtracking.
- Free
- No sign-up
- Works on any device
About Regex Backtracking and ReDoS Checker
A regular expression can look harmless and still take minutes on one unlucky input, because the engine tries one path after another when a match fails. This page runs your pattern in its own backtracking matcher with a step budget, counts every attempt, and repeats the run on shorter versions of your string so you can see whether the work grows slowly, with a power of the length, or doubles with each character. Example: ^(a+)+$ on a string of 24 letters a followed by an exclamation mark runs out of a 100,000 step budget, while a safe pattern finishes in a few hundred steps.
How to use Regex Backtracking and ReDoS Checker
- Type the pattern and flags, and a test string that almost matches.
- Keep the step budget, or raise it to see how far the work grows.
- Read the verdict, the step table for shorter strings and the notes on risky pattern parts.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
What is catastrophic backtracking?
It happens when nested or overlapping repeats can split the same text in many ways, such as (a+)+. On input that nearly matches, the engine tries all the splits, and the work grows exponentially with the length.
What is counted as a step?
One attempt to match one piece of the pattern at one position, including each start position and each repeat iteration. The count is a stable measure of work, not a time in seconds.
Why is look-behind or a unicode flag rejected?
The step counter is its own matcher and supports literals, classes, groups, alternation, repeats, anchors, back-references and look-ahead. Look-behind and unicode flags are not covered, so the page says so instead of guessing.
Is Regex Backtracking and ReDoS Checker free?
Yes. Regex Backtracking and ReDoS Checker on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.