AI Regex Generator
Describe what you want to match in plain English. Tinkr returns a regex, an explanation, a token-by-token breakdown, and runnable test cases. Optionally provide examples to tighten the result.
Describe what you want to match in plain English. Tinkr returns a regex, an explanation, a token-by-token breakdown, and runnable test cases. Optionally provide examples to tighten the result.
Curated reference. No request needed.
These are the patterns developers reach for most often. JavaScript flavor. Each one is tested and works as shown.
Practical email validation — covers the formats developers actually receive.
/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/hi@tinkrtool.comuser.name+tag@example.co.ukMatches HTTP and HTTPS URLs with optional paths and query strings.
/https?:\/\/[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=]*/ghttps://tinkrtool.com/regexhttp://example.com/path?q=1E.164 international format. Optional leading +, then 2–15 digits.
/\+?[1-9]\d{1,14}/+91987654321014155552671Indian mobile number, optional +91 prefix, must start 6–9.
/(?:\+91[\s-]?)?[6-9]\d{9}/+91 98765432109876543210Strict IPv4 — each octet is 0–255 (no out-of-range numbers).
/(?:25[0-5]|2[0-4]\d|[01]?\d\d?)(?:\.(?:25[0-5]|2[0-4]\d|[01]?\d\d?)){3}/192.168.1.1255.255.255.03-digit or 6-digit hex color, with leading #.
/#(?:[0-9a-fA-F]{3}){1,2}\b/g#fff#ff5733ISO 8601 calendar date. Validates month (01–12) and day (01–31).
/\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])/2026-05-081999-12-31Standard UUID v4 — version digit fixed at 4, variant digit 8/9/a/b.
/[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/i550e8400-e29b-41d4-a716-4466554400005-digit ZIP, optionally followed by a 4-digit ZIP+4 extension.
/\d{5}(?:-\d{4})?/9410394103-1234Lookahead-based: requires lowercase, uppercase, digit, symbol, and 8+ chars.
/(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^A-Za-z\d]).{8,}/Pa$$w0rd!Tinkr_2026Lowercase alphanumerics joined by single hyphens. No leading/trailing hyphen.
/[a-z0-9]+(?:-[a-z0-9]+)*/my-blog-posttinkr-v213–19 digit numbers with optional spaces or dashes. Format-only — does not Luhn-check.
/(?:\d[ -]?){13,19}/4242 4242 4242 42425555-5555-5555-4444