Regex Tester
FreeTest and debug regular expressions instantly. See matches highlighted in real time.
//g
Flags:
How to Use This Regex Tester
- Enter your regular expression pattern in the pattern field.
- Toggle flags (g, i, m, s, u) as needed.
- Type or paste the text to test against in the test area.
- Matches are highlighted in real time as you type.
- The match details panel shows each match, its index, and any capture groups.
Common Regex Patterns
Email
^[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}$URL
https?:\/\/[\w\-]+(\.[\w\-]+)+[\/\w\-?=&#.]*IPv4
\b(?:\d{1,3}\.){3}\d{1,3}\bHex color
#[0-9a-fA-F]{3,6}\b