Convertsit Logo

Regex Tester

Test and debug regular expressions with real-time matching, capture groups, and common pattern examples

Regular Expression
//
Flags
Test String
Matches0
No matches found
Common Patterns

Email

Matches email addresses

[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}

URL

Matches HTTP/HTTPS URLs

https?:\/\/[^\s]+

Phone (US)

Matches US phone numbers

\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}

Date (YYYY-MM-DD)

Matches dates in YYYY-MM-DD format

\d{4}-\d{2}-\d{2}

IP Address

Matches IPv4 addresses

\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b

Hex Color

Matches hex color codes

#[a-fA-F0-9]{6}|#[a-fA-F0-9]{3}