Loading…
Text & time
Test JavaScript regular expressions live: highlighted matches, groups and replace.
Runs in your browser — nothing you paste is uploaded
The replaced text appears here.
.\d \w \s[abc] [^abc] [a-z]^ $\b* + ? {2,5}(…) (?:…)(?<name>…)a|b(?=…) (?!…)(?<=…) (?<!…)\. \* \\JavaScript's (ECMAScript), the same engine as your browser and Node.js, including named groups, lookbehind and the s, u and y flags.
Nested quantifiers such as (a+)+ can backtrack exponentially on text that almost matches. The tester runs your pattern in a background worker and stops it after 1.5 seconds, so the page never freezes; rewrite the pattern to avoid nested repetition.
Write $1, $2 and so on for numbered groups, $<name> for named groups, and $& for the whole match.