Browse All Patterns
Explore our complete collection of community-validated regex patterns.
Simple Email
Matches standard email addresses (Note: strictly 99.9% compliant)
ISO Date
Matches dates in YYYY-MM-DD format
24-Hour Time
Matches time in HH:MM format (24-hour)
URL
Matches standard URLs (http/https)
Username
Alphanumeric, underscores, hyphens, 3-16 characters
URL Slug
Matches URL-friendly slugs (lowercase, hyphens)
Credit Card (Basic)
Matches 16-digit credit card numbers (simple format)
Twitter Handle
Matches a Twitter handle (username) without the @ symbol
YouTube URL
Matches standard YouTube video URLs
Instagram Username
Matches Instagram usernames (up to 30 chars, letters, numbers, periods, underscores)
LinkedIn Profile URL
Matches standard LinkedIn public profile URLs
Discord Username
Matches new Discord usernames (lowercase, alphanumeric, dot, underscore)
Hashtag
Matches a standard hashtag (starting with #)
Telegram Username
Matches Telegram usernames (5-32 chars, alphanumeric, underscore)
Slack Channel
Matches Slack channel names (lowercase, hyphens, up to 80 chars)
Strong Password
At least 8 chars, 1 uppercase, 1 lowercase, 1 number, 1 special char
IPv4 Address
Matches a valid IPv4 address
IPv6 Address
Matches standard IPv6 addresses
MAC Address
Matches standard MAC addresses (colon or hyphen separated)
UUID / GUID
Matches standard UUIDs (Version 1-5)
JSON Web Token (JWT)
Matches the structure of a JWT (Header.Payload.Signature)
SHA-256 Hash
Matches a SHA-256 hash (64 hex characters)
BCrypt Hash
Matches BCrypt password hashes
Git Commit Hash
Matches a full 40-character SHA-1 git commit hash
Hex Color Code
Matches 3 or 6 digit hex color codes with optional #
Semantic Versioning (SemVer)
Matches standard SemVer strings (X.Y.Z)
Cron Expression
Matches standard 5-part cron expressions
AWS Access Key ID
Matches AWS Access Key IDs (starts with AKIA, 20 chars)
Markdown Link
Matches standard Markdown links [text](url)
NPM Package Name
Matches valid NPM package names (including scoped)
Indian PAN Card
Matches Permanent Account Number (PAN) format used in India
Indian Aadhaar Number
Matches 12-digit Unique Identification Number (UIDAI)
Indian GSTIN
Matches Goods and Services Tax Identification Number
Indian IFSC Code
Matches Indian Financial System Code for bank branches
Indian Pincode
Matches 6-digit Indian Postal Code
Indian Mobile Number
Matches Indian mobile numbers starting with 6-9, optional +91
Indian Vehicle Registration
Matches standard Indian vehicle registration numbers
US Social Security Number
Matches US Social Security Numbers (SSN) in format XXX-XX-XXXX
US Zip Code
Matches 5 digit zip codes with optional +4 extension
US Phone Number
Matches standard US phone numbers with various formats
US Passport Number
Matches US Passport numbers (9 digits)
Employer Identification Number (EIN)
Matches US Employer Identification Numbers (XX-XXXXXXX)
US State Abbreviation
Matches standard 2-letter US state abbreviations
US Currency
Matches US Dollar amounts with optional cents and commas