Email Validation

Email Regex Cheatsheet

Compare practical email regex patterns, test cases and validation limits before using a pattern in forms, APIs or imports. Last updated September 14, 2026.

Compare practical email regex patterns, test cases and validation limits before using a pattern in forms, APIs or imports. This reference is written for developers who need practical validation behavior, reviewable rules and safe examples rather than copied snippets with no explanation.

Recommended workflow

StepWhy it matters
Start permissiveReject obvious mistakes while keeping valid real-world addresses such as plus tags and subdomains.
Test edge casesCheck empty strings, missing domains, double at signs, whitespace and long addresses.
Separate syntax from deliveryA regex can check shape, but it cannot prove that a mailbox exists.
Mirror server logicClient and server validation should disagree as little as possible.

Starter snippet

Basic pattern: /^[^\s@]+@[^\s@]+\.[^\s@]+$/
Use for: quick client hints
Do not use for: final deliverability proof

Review checks

Common mistakes

Validation should help users correct input while protecting systems from bad data. Keep syntax checks, product policy, security review and deliverability checks separate.

Related Formalint references

Continue with Regex Email Validator, Email Regex Javascript Guide, Email Regex Test Cases.