Regex Tester
Test regular expressions live
About the Regex Tester
Build and debug regular expressions with instant feedback. Matches are highlighted in your test text as you type, so you can see straight away whether the pattern does what you expect.
- Enter your pattern and flags (for example g, i, m).
- Paste the text to test.
- See matches highlighted and listed below.
Frequently asked
Which regex flavour is used?
JavaScript (ECMAScript) regular expressions, the same engine your browser uses.
What do the flags mean?
g finds all matches, i ignores case, m makes ^ and $ match at line breaks, s lets . match newlines, and u enables full Unicode.
Why does my pattern match nothing?
Check escaping. In a regex, characters like . * + ? ( ) [ ] need a backslash to match literally.
Is what I type sent to a server?
No. The tool runs entirely in your browser and there's no server behind it, so what you type never leaves your device and nothing is stored. You can check: it keeps working if you go offline after the page has loaded.
More from the Developer drawer
Other tools kept in this drawer, plus a few favourites from the bench.