Regex Tester
Test a pattern against sample text with live highlighting.
Loading tool…
About this tool
Matching runs in a Web Worker with a time budget, so a pattern that backtracks catastrophically stops the worker instead of freezing the page.
Limitations
- Uses the JavaScript regex engine. PCRE features such as atomic groups, possessive quantifiers and recursion are not available.
- Evaluation is abandoned after a timeout. That is a safeguard, not a verdict on your pattern.
Questions
- Why did my pattern time out?
- Usually nested quantifiers over a long string — something like (a+)+b. The engine explores exponentially many paths. Anchor the pattern or make the inner quantifier lazy.
Privacy
This page does its work in your browser. What you paste is processed by JavaScript running on your own device and is never sent to a DevToolery server — there is no server that could receive it. The page itself is a static file delivered by a CDN. See exactly what is stored.