![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
13/09/2011, 18:36
|
![Avatar de _cronos2](http://static.forosdelweb.com/customavatars/avatar357240_2.gif) | Colaborador | | Fecha de Ingreso: junio-2010
Mensajes: 2.062
Antigüedad: 14 años, 8 meses Puntos: 310 | |
Respuesta: separar palabras con expresion regular A ver así:
Código Javascript :
Ver original/^SELECT\s(\w,?\s?)+\sFROM\s?$/.test(sql);
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 |