Ver Mensaje Individual
  #7 (permalink)  
Antiguo 30/06/2009, 04:52
Avatar de Adler
Adler
Colaborador
 
Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 18 años, 4 meses
Puntos: 126
Respuesta: Una expresion regular facil en asp

Hola

Algo como esto

Código asp:
Ver original
  1. Function tufuncion(str)
  2.  
  3. Dim objRegExp
  4.  
  5.    Dim objRegExp
  6. Set objRegExp = new RegExp
  7. With objRegExp
  8. .Pattern = "(tuexpresion)"
  9. .IgnoreCase = True
  10. .Global = True
  11. End With
  12.  
  13. If (objRegExp.Test(str) = True) Then
  14. ......
  15. Else
  16. .....
  17. End If
  18.  
  19. Set objRegExp = Nothing
  20.  
  21. End Function


Suerte
__________________
Los formularios se envían/validan con un botón Submit
<input type="submit" value="Enviar" style="background-color:#0B5795; font:bold 10px verdana; color:#FFF;" />