Ver Mensaje Individual
  #9 (permalink)  
Antiguo 25/11/2010, 09:54
francap
 
Fecha de Ingreso: agosto-2010
Ubicación: Montevideo
Mensajes: 107
Antigüedad: 13 años, 8 meses
Puntos: 3
Respuesta: Expresión Regular

Posteo la solución, por si le sirve a alguien más:

Código Javascript:
Ver original
  1. texto="abc";
  2.    t_min= 1;
  3.    t_max= 30;
  4.  
  5.   var RegExPattern = new RegExp("^[0-9A-Za-z_ñÑ]{" + t_min + "," + t_max + "}$","i");

Tuve que agregar las ñ porque con A-Za-Z no las reconocía.