We Recommend

ASP.NET 3.5 Unleashed ASP.NET 3.5 Unleashed
ASP.NET 3.5 Unleashed is the most comprehensive book available on the Microsoft ASP.NET 3.5 Framework, covering all aspects of the ASP.NET 3.5 Framework--no matter how advanced.


Posted By

nicolaspar on 12/19/06


Tagged


Versions (?)


ASP - Eregi Para Regex


Published in: ASP 


  1. Function eregi(ByVal str, ByVal patrn,ByVal rpl)
  2. 'EJ, para sacar tags eregi(texto,"<([^>]+)>","")
  3. 'Ej, para sacar los links eregi(texto,"<a([^>]+)>|</a>","")
  4. Set regEx = New RegExp
  5. regEx.Pattern = patrn
  6. regEx.IgnoreCase = True
  7. regEx.Global = True
  8. StrReplace = regEx.Replace(str,rpl)
  9. eregi = StrReplace
  10. End function

Report this snippet 

You need to login to post a comment.