Regex Library
Browse, search, and test common regex patterns — copy with one click.
Email Address
Validates standard email addresses
URL
Matches HTTP/HTTPS URLs
Phone (International)
E.164 international phone format
Phone (US)
US phone numbers with optional formatting
IPv4 Address
Validates IPv4 addresses (0.0.0.0 - 255.255.255.255)
IPv6 Address
Matches full IPv6 addresses
MAC Address
Matches MAC addresses
Credit Card
Visa, Mastercard, Amex, Discover
Hex Color
Matches 3 or 6 digit hex colors
HTML Tags
Matches opening and closing HTML tags
Quoted String
Matches single or double quoted strings
Slug
URL-friendly slug format
Whitespace Trim
Matches leading/trailing whitespace
Duplicate Words
Finds repeated consecutive words
Integer
Positive or negative integers
Decimal Number
Decimal/float numbers
Date (YYYY-MM-DD)
ISO 8601 date format
Date (MM/DD/YYYY)
US date format
Time (HH:MM)
24-hour time format
Currency
US dollar amounts
Strong Password
Min 8 chars, upper, lower, digit, special
UUID v4
UUID version 4 format
JWT Token
JSON Web Token format
Base64
Base64 encoded string
JS Variable
Valid JavaScript variable name
Semver
Semantic versioning (major.minor.patch)
Import Statement
ES module import statements
CSS Class
CSS class selectors
Single-line Comment
JS/TS single-line comments
What is this tool?
A searchable library of commonly used regular expressions. Find the right regex for emails, URLs, dates, passwords, and more — then test it and copy it.
Categories
- Validation — Email, URL, phone, IP, credit card
- Strings & Text — HTML tags, quoted strings, slugs
- Numbers & Dates — Integers, dates, currency
- Security — Passwords, UUID, JWT, Base64
- Programming — Variables, semver, imports