Source: http://www.iamcal.com/publish/articles/php/parsing_email/
Validates an email address, RFC compliant version
by Cal Henderson
http://www.w3.org/Protocols/rfc822/
Text | Result |
---|---|
account@example.com
| match |
@example.com | no match |
account@ | no match |
account@example
| match |
example.com | no match |