Regex Tester
Test your regular expressions against sample text with real-time highlighting of matches. Supports global, case-insensitive, and multiline flags with match group details.
//
Contact us at hello@example.com or support@devtoolkit.dev for more info.
| # | Match | Index | Groups |
|---|---|---|---|
| 1 | hello@example.com | 14 | $1: hello$2: example.com |
| 2 | support@devtoolkit.dev | 35 | $1: support$2: devtoolkit.dev |
How to use
- Enter your regular expression pattern and select flags (g, i, m).
- Paste or type your test text to see matches highlighted.
- Iterate on your pattern until the matches look correct.
- Copy the final regex into your codebase.
FAQ
What do the flags g, i, and m mean?
g = global (find all matches), i = ignore case, m = multiline (^ and $ match line boundaries).
Why does my regex work in one language but not another?
Different languages have different regex engines and escaping rules. Always confirm your target runtime's flavor (JavaScript, PCRE, RE2, etc.).
Is this safe for sensitive data?
Yes. Matching runs locally in your browser; we do not send your text to any server.