To do it correctly, it is not a simple regexp. use the Email::Valid module from CPAN.
use Email::Valid; print (Email::Valid->address('maurice@hevanet.com') ? 'yes' : 'no');
Those who know that they are profound strive for clarity. Those who
would like to seem profound to the crowd strive for obscurity.
--Friedrich Nietzsche
In reply to Re: E-mail
by DamnDirtyApe
in thread How to validate E-mail addresses
by hux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |