Regex Tester and Debugger
Results
Matches will appear here
Quick Reference
Common Patterns
.- Any character except newline\w- Word character [A-Za-z0-9_]\d- Digit [0-9]\s- Whitespace character[abc]- Character class (matches a, b, or c)^- Start of line$- End of line
Quantifiers
*- 0 or more+- 1 or more?- 0 or 1{n}- Exactly n times{n,}- n or more times{n,m}- Between n and m times
Examples
Email: [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}
Phone: \+?\d{1,4}[-.\s]?\d{1,3}[-.\s]?\d{4}
URL: https?:\/\/[\w\-\.]+\.\w+