Giga Useful Tools
All tools

Text

Regex tester

Test a regex against a string and see matches highlighted live.

2 matches
Escríbenos a hola@giga.tools o soporte@giga.tools si te falta algo.
[0] hola@giga.tools
[1] soporte@giga.tools

Everything runs in your browser. No file is ever uploaded to a server.

How to use it
  1. 1Type your pattern into the regex field (no need to add the surrounding slashes).
  2. 2Toggle the i / m / s flags if you need case-insensitive, multiline, or dot-matches-newline behavior.
  3. 3Paste or edit the test text below. Matches highlight live as you type.
  4. 4Check the match count and, if your pattern has capture groups, review each match to see what they captured.
Frequently asked questions
What regex flavor does this use? Is it the same as Python or PCRE?+

It runs on your browser's native JavaScript regex engine, so syntax follows the JS/ECMAScript flavor. Most patterns behave the same as PCRE or Python's re module, but a few features (like lookbehind support in older browsers, or POSIX character classes) can differ. Test the exact pattern here if it's headed into JS code.

Does my test text ever leave my browser?+

No. The pattern and the text you're testing are matched entirely client-side: nothing is sent anywhere, which matters if you're testing a regex against real emails, tokens, or other data you'd rather not paste into a random website.

Why do the 'i', 'm' and 's' checkboxes not include a 'g' option?+

The tool always searches globally under the hood, since the point here is to find every match in the text, not stop at the first one. The three checkboxes just let you toggle case-insensitivity, multiline anchors, and whether . matches newlines.