Skip to content

Regex Tester

Write a regular expression and see matches highlighted in your text as you type.

//gi

Highlighted result (2 matches)

Contact us at hello@example.com or support@veryverytools.com

Matches & groups

[0] "hello@example.com" @ 14

[1] "support@veryverytools.com" @ 35

Test regular expressions safely

This tool evaluates your pattern against JavaScript's native regex engine (the same one used in browsers and Node.js), highlighting every match and listing capture groups so you can debug complex patterns quickly.

Runs entirely in your browser

Your pattern and text are evaluated locally as you type — nothing is sent to a server.

Frequently asked questions

What do the flags mean?

"g" finds all matches instead of stopping at the first one, "i" makes matching case-insensitive, "m" changes how ^ and $ behave across multiple lines, and "s" lets the dot (.) match newline characters too.

Why does my pattern show an error?

JavaScript regex syntax is strict about escaping special characters and matching brackets; check for unescaped characters like parentheses or unbalanced brackets.

Are lookbehind and named groups supported?

Yes, since this runs on the browser's native regex engine, all modern JavaScript regex features are supported.

Related tools

You might also need these while working on the same task.