> >

Regex Generator

Create and test regular expressions for pattern matching

Generate Your Regex

Common Regex Patterns

✉️ Email

^[^\s@]+@[^\s@]+\.[^\s@]+$

Matches valid email addresses

🔐 Strong Password

^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)...

Min 8 chars with uppercase, lowercase, digit, special

📱 Phone Number

^(\+?1[-.\s]?)(\([0-9]{3}\)|[0-9]{3})

US phone format with variations

🌐 URL

^(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]...

Matches HTTP and HTTPS URLs

Regex Cheat Sheet

.Any single character
*Zero or more of preceding
+One or more of preceding
?Zero or one of preceding
[abc]Character class (a, b, or c)
[a-z]Character range (a to z)
\dDigit (0-9)
\wWord character (a-z, A-Z, 0-9, _)
^Start of string
$End of string