⚡ DevToolKit

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.
#MatchIndexGroups
1hello@example.com14$1: hello$2: example.com
2support@devtoolkit.dev35$1: support$2: devtoolkit.dev

How to use

  1. Enter your regular expression pattern and select flags (g, i, m).
  2. Paste or type your test text to see matches highlighted.
  3. Iterate on your pattern until the matches look correct.
  4. 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.