Email Validation
Email Address Regex
Validate email addresses with this comprehensive regex pattern. Matches standard email formats inclu...
Simple Email Regex
A simple email validation regex for basic checks. Less strict but catches most invalid emails....
RFC 5322 Email Regex
The most comprehensive email regex following RFC 5322 specification. Handles edge cases including qu...
Phone Numbers
US Phone Number Regex
Validate US phone numbers in various formats including (123) 456-7890, 123-456-7890, and 123.456.789...
International Phone Number Regex
E.164 format international phone number validation. Supports country codes and up to 15 digits....
UK Phone Number Regex
Validate UK phone numbers starting with +44 or 0. Supports both 10 and 11 digit formats....
URLs & Web
URL Regex Pattern
Match and validate URLs with HTTP or HTTPS protocols. Supports query strings, fragments, and complex...
URL with Any Protocol Regex
Match URLs with any valid protocol including ftp, mailto, file, and custom schemes....
URL Slug Regex
Validate URL-friendly slugs. Allows lowercase letters, numbers, and hyphens (not at start/end)....
Domain Name Regex
Validate domain names with proper label and TLD rules....
Subdomain Regex
Validate subdomain labels: alphanumeric, hyphens allowed (not at start/end)....
IP Addresses
IPv4 Address Regex
Validate IPv4 addresses with proper range checking (0-255 for each octet)....
IPv6 Address Regex
Match IPv6 addresses including compressed notation with double colons (::)....
US ZIP Code Regex
Validate US ZIP codes: 5 digits or ZIP+4 format (12345-6789)....
Multiple Spaces Regex
Match two or more consecutive spaces. Useful for text cleanup....
Date & Time
ISO 8601 Date Regex
Match ISO 8601 date format YYYY-MM-DD. The international standard for date representation....
US Date Format Regex
Match US date format MM/DD/YYYY with basic validation for month and day ranges....
European Date Format Regex
Match European date format DD/MM/YYYY commonly used in UK and EU countries....
24-Hour Time Regex
Match 24-hour time format HH:MM with proper hour (0-23) and minute (0-59) validation....
12-Hour Time Regex
Match 12-hour time format with AM/PM indicator. Allows optional leading zero....
ISO 8601 DateTime Regex
Match full ISO 8601 datetime with timezone. Includes optional milliseconds and timezone offset....
Passwords & Security
Strong Password Regex
Validate strong passwords requiring: 8+ characters, uppercase, lowercase, number, and special charac...
Medium Strength Password Regex
Validate medium strength passwords: 8+ characters with uppercase, lowercase, and number....
JWT Token Regex
Match JWT (JSON Web Token) format: three Base64URL-encoded parts separated by dots....
Base64 String Regex
Match Base64-encoded strings with proper padding....
Usernames
Financial
Credit Card Number Regex
Validate major credit card formats: Visa, MasterCard, American Express, and Discover....
Visa Card Number Regex
Validate Visa card numbers: starts with 4, 13 or 16 digits total....
CVV/CVC Regex
Validate CVV/CVC security codes: 3 digits for most cards, 4 digits for American Express....
US Social Security Number Regex
Validate US SSN format XXX-XX-XXXX with Area, Group, and Serial number rules....
US EIN (Tax ID) Regex
Validate US Employer Identification Number format XX-XXXXXXX....
USD Currency Regex
Match US dollar amounts with optional thousands separators and cents....
Postal Codes
Code & Development
Hex Color Code Regex
Match hex color codes in 3 or 6 digit format with optional # prefix....
Hex Color with Alpha Regex
Match hex colors including 8-digit RGBA and 4-digit shorthand with alpha....
UUID/GUID Regex
Validate UUID/GUID format: 8-4-4-4-12 hexadecimal characters....
MAC Address Regex
Validate MAC addresses with colon or hyphen separators....
HTML Tag Regex
Match HTML tags with their content. Captures tag name and inner content....
HTML Comment Regex
Match HTML comments including multi-line comments....
JSON String Regex
Match valid JSON strings including escaped characters....
Semantic Version Regex
Validate semantic versioning format (SemVer) with optional prerelease and build metadata....
Git Commit Hash Regex
Match Git commit hashes: 7-40 character hexadecimal strings....
Text & Content
Hashtag Regex
Extract hashtags from text. Matches # followed by alphanumeric characters and underscores....
User Mention Regex
Extract @mentions from text. Common in social media and chat applications....
Markdown Link Regex
Extract markdown links [text](url) from documents....
Markdown Image Regex
Extract markdown images  from documents....
Whitespace Regex
Match one or more whitespace characters including spaces, tabs, and newlines....
Multiple Spaces Regex
Match two or more consecutive spaces. Useful for text cleanup....
Empty Lines Regex
Match empty lines or lines containing only whitespace....
Numbers
Files
General
URL Slug Regex
Validate URL-friendly slugs. Allows lowercase letters, numbers, and hyphens (not at start/end)....
URL Slug Regex
Match URL-friendly slugs with lowercase letters, numbers, and hyphens....
Alphanumeric Regex
Match strings containing only letters and numbers....
Alphabetic Only Regex
Match strings containing only letters (no numbers or special characters)....
Need a Custom Regex Pattern?
Use our interactive Regex Tester to build, test, and debug custom patterns. See matches highlighted in real-time with detailed explanations.
Open Regex Tester