/ Published in: Regular Expression
This regular expression will match almost all valid email addresses. Omits email addresses containing double-quotes and square brackets, which while valid according to [RFC 2822][rfc2822], are almost never used.
[rfc2822]: http://tools.ietf.org/html/rfc2822 "RFC 2822"
[rfc2822]: http://tools.ietf.org/html/rfc2822 "RFC 2822"
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?
URL: http://www.regular-expressions.info/email.html