Validates email addresses
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$Example matches
Regex Library
Browse every regex pattern published on DuskTools in one crawlable index. Each destination page includes the raw expression, matching and non-matching examples, a breakdown of how the pattern works, and links into the regex tester when you want to adapt it for production use.
This hub is designed for discovery: compare adjacent patterns, jump straight into validation use cases like JWTs or semantic versions, and follow related links into CSS and JavaScript reference content without losing context.
Pattern pages
15
Pattern categories
6
Interactive helpers
3
Patterns for emails, phone numbers, and other user-facing identifiers.
Validates email addresses
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$Example matches
US phone number formats
^\+?1?[\s.-]?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$Example matches
(555) 123-4567+1 555.123.4567Common expressions for URLs, HTML fragments, and slug-like paths.
Matches HTTP/HTTPS URLs
https?:\/\/[\w\-]+(\.[\w\-]+)+[\w\-.,@?^=%&:/~+#]*Example matches
https://example.comhttp://sub.domain.com/pathMatches HTML tags
<\/?[a-zA-Z][a-zA-Z0-9]*(?:\s[^>]*)?\/?>Example matches
<div><img src='x' />URL-friendly slugs
^[a-z0-9]+(?:-[a-z0-9]+)*$Example matches
hello-worldmy-post-123Copy-ready validators for IP addresses and hardware-oriented network formats.
Validates IPv4 addresses
^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$Example matches
192.168.1.110.0.0.1Network MAC address
^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$Example matches
00:1A:2B:3C:4D:5E00-1A-2B-3C-4D-5EFull IPv6 address
^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$Example matches
2001:0db8:85a3:0000:0000:8a2e:0370:7334Formats that frequently show up in auth, payments, and input validation flows.
At least 8 chars, uppercase, lowercase, number, special char
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$Example matches
P@ssw0rd!Str0ng!PassUUID format (any version)
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Example matches
550e8400-e29b-41d4-a716-446655440000Visa, Mastercard, or Amex
^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|3[47][0-9]{13})$Example matches
41111111111111115500000000000004JSON Web Token format (header.payload.signature)
^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$Example matches
eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.abc123Structured formats developers validate in APIs, config files, and release pipelines.
ISO 8601 date format (YYYY-MM-DD)
^\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])$Example matches
2024-01-152023-12-31Semantic versioning (major.minor.patch)
^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?$Example matches
1.0.02.3.4-beta.1Frontend-friendly patterns useful in styling, theming, and UI tooling.
3 or 6 digit hex color codes
^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$Example matches
#ff0000#FFFFollow these related discovery pages to move from regex references into frontend snippets, CSS examples, and the larger DuskTools directory.