Regex Tester
Test and debug regular expressions with real-time matching
Regular Expression Reference
Common Patterns
\d- Any digit (0-9)\w- Word character (a-z, A-Z, 0-9, _)\s- Whitespace character.- Any character except newline^- Start of string/line$- End of string/line
Quantifiers
*- 0 or more+- 1 or more?- 0 or 1{n}- Exactly n times{n,m}- Between n and m times
Common Examples
- Email:
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,} - Phone:
\d{3}[-.]?\d{3}[-.]?\d{4} - URL:
https?://[^\s]+ - IP Address:
\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}