Bleep Bleep In At The Bleep End

Sunday, October 04, 2009
Regular Expressions aka regex

Regex is a way of searching for patterns in text using different conditions & wildcards.

A nice intro to the concept here
http://www.4guysfromrolla.com/webtech/090199-1.shtml

More here...
http://www.4guysfromrolla.com/webtech/RegularExpressions.shtml

and this is an example of how to do it in Vbscript (ASP)

hr1 = "text to be searched here"
Set regEx = New RegExp
regEx.Pattern = "put the pattern here"
hr1replace = regEx.Replace(hr1,"")


Obviously, lines 1 & 3 to be customised to whatever you are doing.

Posted by d - 12:14 pm - 0 Comments

Add a Comment