Regex Tester

Test your Regular Expressions against strings with real-time highlighting and breakdown.

//
Contact us at support@example.com or sales@company.co for more info.
#MatchIndex
1support@example.com14 - 33
2sales@company.co37 - 53
Runs locally in your browser. 100% private & secure.

About Regex Tester

What is a Regular Expression?

A Regular Expression (Regex or RegExp) is a sequence of characters that specifies a search pattern in text. Usually such patterns are used by string-searching algorithms for "find" or "find and replace" operations on strings, or for input validation.

Common Flags

  • g (Global): Don't return after the first match, restart the subsequent searches from the end of the previous match.
  • i (Insensitive): Case-insensitive search.
  • m (Multiline): Anchors (^ and $) match the start and end of every line, instead of just the whole string.
  • s (DotAll): Allows the dot (.) to match newline characters.

Frequently Asked Questions

Which flavor of Regex does this support?

Since this tool runs in your browser, it uses the native JavaScript (ECMAScript) Regular Expression engine.