DD
DevDash

Regex Pattern Library

47 tested regex patterns for email, phone, URL, password, UUID, date, credit card, and more. Each page has copy-paste code for JavaScript, Python, Ruby, PHP, and Java.

Quick Answer

Regex (regular expressions) define patterns for matching text. Common uses: validating email, phone numbers, URLs, passwords; extracting data; find-and-replace. Most languages use PCRE-compatible syntax with minor differences in flags and escaping. Click any pattern below for tested examples and copy-paste code in 5 languages.

Common Validation

Phone Numbers

Passwords

Networking

Payment

Identifiers

Date & Time

Postal Codes

Numbers

File Paths

HTML & Markup

Whitespace

Want API access + no ads? Pro coming soon.