Regex Generator & Tester
Build, test, and debug regular expressions with real-time feedback.
//
Matches (0)
No matches found.
Common Templates
Email Address
Validates standard email format
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$Strong Password
Min 8 chars, 1 uppercase, 1 lowercase, 1 number, 1 special char
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$Date (YYYY-MM-DD)
ISO 8601 date format
^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$IPv4 Address
Validates IPv4 addresses
^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$Hex Color
3 or 6 digit hex color codes
^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$URL
Matches web URLs
^(https?:\/\/)?(www\.)?([a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\.)+[a-z]{2,}(:[0-9]+)?(\/.*)?$Pro Tip
Hover over your matches to see detailed capture group breakdowns. Use flags like g for global search or i for case-insensitive matching.