Pattern Library

Browse and use pre-built regex patterns for common use cases

Regex Pro
Curated Collection

Email Address

Medium

Validate email addresses with proper formatting and domain checking.

^[\w.-]+@[\w.-]+\.\w+$
Example matches:
user@example.com
test.email@domain.co.uk

US Phone Number

Easy

Match US phone numbers in XXX-XXX-XXXX format.

^\d{3}-\d{3}-\d{4}$
Example matches:
555-123-4567
123-456-7890

ISO Date

Easy

Match dates in YYYY-MM-DD format.

^\d{4}-\d{2}-\d{2}$
Example matches:
2024-12-30
1999-01-15

HTTP/HTTPS URLs

Medium

Extract HTTP and HTTPS URLs from text.

https?://[^\s/$.?#].[^\s]*
Example matches:
https://example.com
http://test.org/path

Strong Password

Hard

Validate passwords with complexity requirements.

(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d@$!%*?&]{8,}
Example matches:
Password123
Secure@2024

HTML Tags

Easy

Extract HTML tags from markup.

<[^>]+>
Example matches:

IPv4 Address

Medium

Validate IPv4 addresses.

\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b
Example matches:
192.168.1.1
10.0.0.1

Credit Card

Hard

Basic credit card number format validation.

\b\d{4}[- ]?\d{4}[- ]?\d{4}[- ]?\d{4}\b
Example matches:
1234-5678-9012-3456
1234567890123456

SSN (US)

Easy

US Social Security Number format.

\b\d{3}-\d{2}-\d{4}\b
Example matches:
123-45-6789
987-65-4321

Hex Color

Medium

Match hexadecimal color codes.

#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})
Example matches:
#FF5733
#abc

24h Time

Easy

Match time in 24-hour format.

^([01]\d|2[0-3]):([0-5]\d)$
Example matches:
14:30
09:15