by Luis Henrique
<?phpfunction regex_mail($mail){ if(ereg("^[A-Za-z0-9\._+-]+[@]{1}[A-Za-z0-9\.|-|_]*[.]{1}[a-z]{2,5}$", $mail)){ return 1; }}?>