Ver Mensaje Individual
  #7 (permalink)  
Antiguo 19/09/2011, 11:11
Avatar de _cronos2
_cronos2
Colaborador
 
Fecha de Ingreso: junio-2010
Mensajes: 2.062
Antigüedad: 13 años, 11 meses
Puntos: 310
Respuesta: Problema con test y expresión regular

Por cierto, no uses un switch D: Usa un objeto:
Cita:
var rgxps = {
'alfanum' : ...,
'pass' : ...
};

var patron = rgxps[tipo];
Saludos (:
__________________
" Getting older’s not been on my plans
but it’s never late, it’s never late enough for me to stay. "
Cigarettes - Russian Red