Test any regular expression live — matches, positions and Replace mode.
Matches update as you type. Without the g flag only the first match is shown or replaced.
A regular expression is a compact pattern for describing text: \d matches a digit, \w matches a word character, ^ anchors to the start and $ to the end. For example, \d+ on abc123def45 finds 123 and 45, and ^\w+@\w+\.\w+$ matches a simple email like test@example.com.
An invalid pattern, such as a lone opening bracket (, cannot be compiled, so the tester shows the browser's error message instead of results. Fix the syntax and the matches return instantly — an invalid pattern never crashes the page.
Switch to Replace mode, type a replacement, and every match is swapped for it. The replacement supports $1, $2 for capture groups and $& for the whole match. Without the g flag only the first match is replaced.
Yes — 100% free, no sign-up. Test as many patterns as you like; everything runs in your browser and nothing is uploaded.