in reply to On Validating Email Addresses
If someone wants to not give you his real email address, he can just type mickey.mouse@microsoft.com which would be fine for your validator routine. If someone mistypes his email address by accident, the chance that your validator can catch that is very slim as well.
If you need to validate an email address, the only way to do that is to send an email to that address and wait for a reply. So for form validations, it does not make sense to check more than that the string contains an @ and at least one dot after that.
if ( /\@.+\./ ) { # email looks good }
|
|---|