Regex Tester

Write a regular expression, paste test text and see matches highlighted in real time. View each match with its capture groups, toggle flags like global, case-insensitive and multiline, and debug your patterns faster.

2 matches found
Contact us at hello@freecaltools.com or support@example.org for help.
#MatchIndexCapture groups
1hello@freecaltools.com14
2support@example.org40

How it works

Your pattern and flags are compiled into a JavaScript RegExp. The tool iterates with exec() to collect every match, its index and its capture groups, then renders the test string with matches highlighted inline.

Frequently asked questions

Which regex flavor does this use?

JavaScript's RegExp engine, supporting standard syntax plus flags g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode) and y (sticky).

Why is my regex not matching?

Check escaping (backslashes must be typed literally here, not doubled), whether you need the g or m flag, and whether ^/$ anchors apply per-line or per-string.

Related tools