Regex Tools

Email Regex Validator & Pattern

Validate email addresses against RFC 5322 compliant regex patterns with detailed explanation of common email regex approaches.

regexemailvalidateemail validatorpattern

Email Validator

Regular Expression

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

Sample Emails

user@example.com
user.name@example.com
user+tag@example.com
user@sub.example.com
user@.com
user@example
@example.com
user@example..com

What is Email Regex Validator & Pattern?

Email Regex Validator provides production-tested regular expression patterns for validating email address format along with an interactive tester and detailed explanation of RFC 5322 compliance tradeoffs. Email validation via regex is one of the most commonly asked Stack Overflow questions and one of the most frequently done incorrectly. Many email regex patterns found online reject valid addresses those containing plus signs dots in the local part subdomain TLDs like dot-co-dot-uk or international characters like n-tilde or u-umlaut in IDN domains while allowing clearly invalid ones. This tool includes multiple patterns ordered by strictness a Practical pattern matches ninety nine point nine percent of real-world addresses per HTML5 spec an RFC 5322 Official pattern implements the full complex standard and a Simple pattern for low-stakes client-side hinting. Test individual addresses or upload bulk lists see detailed breakdowns of why specific addresses pass or fail understand the tradeoffs practical strictness vs RFC perfection and copy the pattern pre-configured for JavaScript Python Java PHP Go or SQL CHECK constraints with correct string escaping for each language.

When to Use Email Regex Validator & Pattern

Use when adding email validation to web forms, writing backend input validation, sanitizing mailing lists, reviewing regex patterns in existing code, or validating CSV import data.

How to Use Email Regex Validator & Pattern

Choose a pattern strictness level Practical RFC 5322 Simple. Enter email addresses to test pass or fail results highlight instantly. Copy the pattern pre-escaped for your programming language.