Regex Generator
Generate regex patterns from example strings, test against samples, and browse a library of common patterns like email, URL, and phone number.
Email Address
Matches standard email addresses
URL (http/https)
Matches HTTP and HTTPS URLs
Phone (US)
Matches US phone numbers in various formats
Phone (International)
Matches international phone numbers (E.164 format)
IPv4 Address
Matches valid IPv4 addresses (0.0.0.0 to 255.255.255.255)
Hex Color
Matches hex color codes (3, 6, or 8 digit)
Date (YYYY-MM-DD)
Matches dates in ISO 8601 format
Date (MM/DD/YYYY)
Matches US-format dates
Time (24h)
Matches 24-hour time format
Username
Alphanumeric, underscore, hyphen, 3-20 chars
Strong Password
Min 8 chars, uppercase, lowercase, number, special char
Credit Card
Matches Visa, Mastercard, Amex, Discover
UUID v4
Matches UUID version 4 format
Slug
URL-friendly slug format
HTML Tag
Matches opening and closing HTML tags
ZIP Code (US)
Matches 5-digit or 9-digit US ZIP codes
How to Use
- Use the Library tab to browse and copy common regex patterns.
- Use the Generator tab to input example strings and generate a matching regex.
- Use the Tester tab to test any regex against sample inputs.
Features
- 16+ common regex patterns (email, URL, phone, UUID, etc.)
- Pattern generator from example strings
- Real-time regex tester with match highlighting
- Support for regex flags (g, i, m, s)
- Click to copy any pattern
- 100% client-side, no data sent anywhere
Recommended Products
AdAffiliate Disclosure: As an Amazon Associate, ToolBird earns from qualifying purchases. Links above are affiliate links — if you buy through them, we may earn a small commission at no extra cost to you.
Disclaimer: This tool is provided as-is for informational and educational purposes only.