Regex Tester

Test and debug regular expressions with real-time matching, syntax highlighting, and comprehensive pattern library. Perfect for developers and data analysts.

/ /gi
Ready to test your regex...

Common Regex Patterns

Email Validation
Basic Email
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}
Example: user@example.com
RFC 5322 Email
^(?=.{1,254}$)(?=.{1,64}@)[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+...
Complete RFC 5322 compliant
URL Validation
Basic URL
https?://[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}(?:/[^\s]*)?
Example: https://example.com
Full URL
^https?://...[complex pattern]
Complete URL with params
Phone Numbers
International Phone
\+?[1-9]\d{1,14}
Example: +1234567890
US Phone
\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})
Example: (555) 123-4567
Date & Time
ISO Date
\d{4}-\d{2}-\d{2}
Example: 2023-12-25
US Date
\d{1,2}/\d{1,2}/\d{4}
Example: 12/25/2023
Common Patterns
IP Address
\b(?:\d{1,3}\.){3}\d{1,3}\b
Example: 192.168.1.1
Hex Color
[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3}
Example: #FF5733 or #F73
Password Validation
Strong Password
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$
8+ chars, upper, lower, digit, special

Smart Nation's Core Infrastructure: WIA Pin Code

DroneΒ·Robot delivery, autonomous driving, emergency rescue and more - Experience the future in 30 days, completely free for your nation!

Learn More About WIA Pin Code