Regex Tester

Test and debug regular expressions in real-time

//
0 matches found
Enter a test string to see matches...
Flags:
Rate this tool:

How to Use

  1. 1Enter your regular expression pattern
  2. 2Select regex flags (global, case-insensitive, etc.)
  3. 3Enter your test string
  4. 4See matches highlighted with capture group details

Regex Flags

gGlobal β€” Find all matches, not just the first
iCase Insensitive β€” Ignore letter case when matching
mMultiline β€” ^ and $ match start/end of each line
sDotall β€” Dot (.) matches newline characters

Common Patterns

Email:
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}
URL:
https?:\/\/[^\s]+
Phone (US):
\(?[0-9]{3}\)?[-.\s]?[0-9]{3}[-.\s]?[0-9]{4}

FAQ

Is my data safe?

Yes. This tool runs entirely in your browser. Your regex patterns and test strings never leave your device.

Which regex flavor is this?

This tool uses JavaScript regular expressions (ECMAScript). Most common regex features are supported, including lookahead and lookbehind assertions.