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
- 1Enter your regular expression pattern
- 2Select regex flags (global, case-insensitive, etc.)
- 3Enter your test string
- 4See matches highlighted with capture group details
Regex Flags
gGlobal β Find all matches, not just the firstiCase Insensitive β Ignore letter case when matchingmMultiline β ^ and $ match start/end of each linesDotall β Dot (.) matches newline charactersCommon 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.