if( !ereg('^[0-9a-z\.\_\-]+@[0-9a-z\.\_\-]+(\.[a-z])+$',$email) ) { echo "dirección incorrecta"; }