Ver Mensaje Individual
  #5 (permalink)  
Antiguo 02/07/2011, 02:51
Avatar de Firez
Firez
 
Fecha de Ingreso: junio-2011
Mensajes: 12
Antigüedad: 12 años, 10 meses
Puntos: 1
Respuesta: Sobre el PCRE (preg_match)

Bueno, ya entendi !

Código PHP:
    function ValidarKey($key)
    {
        return 
preg_match("/([\w\-]{4}\-[\w\-]{4}\-[\w\-]{4}\-[\w\-]{4}\-[\w\-]{4})/",trim($key));
    } 
Ese es el codigo funcional..

Muchas gracias !