Ver Mensaje Individual
  #8 (permalink)  
Antiguo 20/02/2007, 16:21
Avatar de derkenuke
derkenuke
Colaborador
 
Fecha de Ingreso: octubre-2003
Ubicación: self.location.href
Mensajes: 2.665
Antigüedad: 20 años, 7 meses
Puntos: 45
Re: expresiones regulares avanzado

Acabo de encontrar por casualidad las restricciones de javascript en cuanto a expresiones regulares se refiere:

Cita:
Iniciado por http://safari.oreilly.com/0596529376/I__CHP_9
* Decent Unicode support. Though Unicode characters can be matched and inserted, the \w word-character wildcard doesn't match anything outside the standard ASCII range. The same holds for the character classes [A-Z] and [a-z], so it is cumbersome to test whether or not a character is a letter or whether it's an upper or lower case. A real pain.
* Lookbehind, neither positive nor negative lookbehind. Very unfortunate.
* If–then constructs. Some script languages permit conditional statements; JavaScript does not. Would be useful.
* Named captures. Not a really great loss.
* Embedded comments. Not a big loss either.
Así que nos quedamos con lo importante: no lookbehind y no condicionales
__________________
- Haz preguntas inteligentes, y obtendrás más y mejores respuestas.
- Antes de postearlo Inténtalo y Búscalo.
- Escribe correctamente tus mensajes.