ToolVault

Regex Tester

Type a JavaScript regular expression and some sample text to see every match and capture group highlighted in real time. Toggle flags like global, ignore case, and multiline to fine-tune the pattern. Everything runs in your browser, so your data stays private.

//g
Matches (2)
at 14: hello@example.com
at 35: sales@test.org

Frequently asked questions

Which regex flavor does this tester use?+

It uses the JavaScript regular expression engine built into your browser, the same one used by Node.js and front-end code. Patterns that work here will behave the same in your JavaScript or TypeScript projects.

How do I see capture groups from my regex?+

Each match in the results list shows its full text plus every numbered capture group, and named groups when you use the named group syntax, so you can confirm your pattern extracts the right parts.

Why does my regex only return the first match?+

Without the global flag a regex matches once. Turn on the g flag to find every match in the text. The tester exposes g along with i, m, s, u, and y so you can control matching behavior.