Codice PHP:
if(!preg_match("/^[A-Za-z0-9._-]*[@]{1}[A-Za-z0-9._-]*[.]{1}[a-z]{2,5}$/"$email))