Blog
TutorialMay 30, 2026

Regex for Email Validation

Email validation regex is one of the most common patterns developers write. A practical pattern catches obvious errors while accepting real-world addresses.

A Practical Pattern

Basic: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$. This checks for local part, @, domain, and TLD. It won't catch every RFC 5322 edge case but handles 99% of real emails.

Limitations

Regex cannot fully validate email — only format. Always verify with a confirmation email or SMTP check for production. Internationalized domain names (IDN) need additional handling.

Test patterns live with WaiHub's Regex Tester and load the email template from the pattern library.