Regex Tester

Test regular expressions

Regular Expression

/
/
Flags: g - global match, i - ignore case, m - multiline, s - dot matches all

Test String

Matches

Found 0 matches
Please enter test text

Common Regex Templates

Email Address

Validate standard email format

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

Phone Number

Match various phone number formats

^(\+?\d{1,3}[- ]?)?\(?(\d{1,4})\)?[\s.-]?\d{1,4}[\s.-]?\d{1,9}$

URL

Match HTTP/HTTPS URLs

^https?:\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$

IPv4 Address

Validate IPv4 address format

^(?:(?: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]?)$

Date Format

Match YYYY-MM-DD date format

^\d{4}-\d{2}-\d{2}$

Strong Password

At least 8 chars with uppercase, lowercase, number and special char

^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$