Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/11/2009, 12:08
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: expresiones regulares

Código php:
Ver original
  1. function checkEmail($email){
  2.     $reg = "#^(((([a-z\d][\.\-\+_]?)*)[a-z0-9])+)\@(((([a-z\d][\.\-_]?){0,62})[a-z\d])+)\.([a-z\d]{2,6})$#i";
  3.     return preg_match($reg, $email);  
  4. }
__________________
More about me...
~ @rhyudek1
~ Github

Última edición por Hidek1; 27/11/2009 a las 12:09 Razón: fuente: http://www.ribosomatic.com/articulos/top-10-expresiones-regulares-en-php/