Validation
Email Address Validation
Match and validate email addresses in the standard user@domain.tld format.
/[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a…/gUS Phone Number
Match US phone numbers in common formats: (555) 867-5309, 555-867-5309, 5558675309.
/\(?\d{3}\)?[\s.\-]?\d{3}[\s.\-]?\d{4}/gCredit Card Number
Match 16-digit credit card numbers with optional spaces or hyphens between groups of 4.
/\b(?:\d{4}[\s\-]?){3}\d{4}\b/gUS ZIP Code
Match US ZIP codes in 5-digit (12345) and ZIP+4 (12345-6789) formats.
/\b\d{5}(?:[\-\s]\d{4})?\b/gWeb
URL Validation
Match http and https URLs with optional www prefix, paths, query strings, and fragments.
/https?:\/\/(?:www\.)?[\w\-]+(?:\.[\w\-…/giHex Color Code
Match CSS hex color codes in both 3-digit (#RGB) and 6-digit (#RRGGBB) formats.
/#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{3})\b/gURL Slug
Validate URL slugs: lowercase letters and digits separated by single hyphens, no leading/trailing hyphens.
/^[a-z0-9]+(?:-[a-z0-9]+)*$/HTML Tag Matcher
Match paired HTML tags and capture the tag name and inner content using a back-reference.
/<([a-zA-Z][a-zA-Z0-9]*)\b[^>]*>([\s\S]…/gNetworking
Dates & Times
Security
Identifiers
Text Processing
Test any regex in your browser
RegexPro's interactive tester highlights matches in real time — no sign-up, no installs.
Open Regex Tester