About this tool
Patterns use the JavaScript (ECMAScript) regular expression syntax, including named groups (?<name>...), lookbehind and the flags g, i, m, s, u, y, d and v. Other engines (PCRE, Python, .NET) are similar but not identical, so test there too before relying on a pattern.
Each test runs in a background worker with a 1.5-second limit. Patterns with nested quantifiers such as (a+)+ can take exponential time on some inputs ("catastrophic backtracking"); the tester stops them instead of freezing your browser, a useful warning before such a pattern reaches production.
Good to know
- JavaScript regex syntax only.
- Shows up to 5,000 matches; the table lists the first 200.