Regex Options:
Common Regex Patterns:
Words:
\w+
Matches one or more word characters
Numbers:
\d+
Matches one or more digits
Letters:
[A-Za-z]+
Matches only letters (no numbers)
Email:
\b\w+@\w+\.\w+\b
Basic email pattern
URL:
https?://[^\s]+
Matches http/https URLs
Email (Advanced):
\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b
More comprehensive email pattern
Regex Cheat Sheet:
Basic Patterns
.- Any character except newline\w- Word character (a-z, A-Z, 0-9, _)\d- Digit (0-9)\s- Whitespace (space, tab, newline)\b- Word boundary
Quantifiers
*- 0 or more times+- 1 or more times?- 0 or 1 time{n}- Exactly n times{n,}- n or more times
Character Classes
[abc]- a, b, or c[^abc]- Not a, b, or c[a-z]- Letters a to z[0-9]- Digits 0 to 9
Regex Tester Online – Test & Validate Regular Expressions
Test, debug and validate regular expressions online with real-time results. Free regex tester tool for developers and learners.