Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/01/2010, 08:11
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: ¿como seria una expresion regular para esta cadena de texto??

Código PHP:
Ver original
  1. $text = "UA-NNNNNNNN-NN";
  2. echo preg_match('/([A-Z]{2}-[A-Z]{8}-[A-Z]{2})/',$text) ? "si" : "no";
__________________
More about me...
~ @rhyudek1
~ Github