check out Email::Valid
if (!($MailTo !~/\@*\./)){ .. }you've got a double negative there, so as I read it, it says:
if $Mailto contains zero or more @'s (\@*) followed by a '.' (\.) then $kill = 1
or, more simply.. if $Mailto contains a '.' then $kill = 1
cheers,
J
In reply to Re: Regex problem
by edoc
in thread email address validation regexp
by wallyweezle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |