Regex Tester
Test patterns, see live matches.
Runs entirely in your browser — nothing you enter is uploaded, logged, or tracked.
Write a JavaScript regular expression and watch it match your sample text live — every match highlighted, with a count and capture groups, and any pattern error explained.
/ /
Matches 0
Frequently asked questions
Which regex flavor is this?
JavaScript (ECMAScript) regular expressions, with the g, i, m, s, u, and y flags. Most common patterns are portable to other languages.
Is my text sent anywhere?
No — the pattern runs against your text locally in the browser, so it’s safe to test against private data.