Real-time JavaScript regular expression tester with interactive match highlighting, flag toggles (g, i, m, s, u), match counts, capture group inspector, and error explanation.
Production-tested regex patterns for form validation, networking, data formats, and web development.
Matches standard email addresses with alphanumeric characters, common symbols, and domain extension.
/([a-zA-Z0-9._%+-]+)@([a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/gMatches complete web links with protocol (http/https), domain, optional port, and query string path.
/https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&//=]*)/gStrictly validates standard dotted-decimal IPv4 addresses from 0.0.0.0 through 255.255.255.255.
/\b(?:(?: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]?)\b/gMatches standard 8-group hexadecimal IPv6 network addresses.
/\b(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}\b/gMatches standard 36-character RFC 4122 version 4 cryptographically random UUIDs.
/\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\b/gMatches ISO 8601 calendar dates with 4-digit year, 2-digit month (01-12), and day (01-31).
/\b\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])\b/gMatches 24-hour military timestamp with hours (00-23), minutes, and optional seconds.
/\b(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?\b/g
Matches international standard E.164 telephone numbers with optional leading plus sign.
/\+?[1-9]\d{1,14}\b/gEnsures at least 8 characters, at least 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special symbol.
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/Matches 3, 4, 6, or 8-digit CSS hexadecimal color codes preceded by #.
/#(?:[0-9a-fA-F]{3,4}){1,2}\b/gMatches SemVer 2.0 release formats (major.minor.patch) with optional pre-release suffixes.
/\bv?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-[0-9a-zA-Z.-]+)?\b/g
Matches URL-friendly lowercase slugs separated by hyphens.
/^[a-z0-9]+(?:-[a-z0-9]+)*$/
Extracts matched opening and closing HTML elements with attributes.
/<([a-zA-Z][a-zA-Z0-9]*)\b[^>]*>(.*?)<\/\1>/g
Matches major credit cards: Visa (13/16 digits), MasterCard (16 digits), Amex (15 digits), Discover (16 digits).
/\b(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|3[47][0-9]{13}|6(?:011|5[0-9]{2})[0-9]{12})\b/gMatches three-segment Base64URL encoded JSON Web Tokens (Header.Payload.Signature).
/\b[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.[A-Za-z0-9-_.+/=]*\b/g
Pattern: ([a-zA-Z0-9._%+-]+)@([a-zA-Z0-9.-]+\.[a-zA-Z]{2,})
Text: Contact ada@computing.org for helpMatch 1: 'ada@computing.org' (Group 1: 'ada', Group 2: 'computing.org')
Pattern: \b(?:\d{1,3}\.){3}\d{1,3}\b
Text: Gateway: 192.168.1.1 and DNS: 8.8.8.8Match 1: '192.168.1.1', Match 2: '8.8.8.8'
Discover other in-browser tools frequently used alongside this utility.
Convert Unix epoch timestamps to human dates, UTC, ISO 8601, and local timezones.
Beautify, minify, inspect, and validate JSON data with custom indentation.
Validate JSON syntax with detailed error diagnosis and line positions.