Regular Expressions in VBScript
Posted on November 18th, 2008 by Tom Andreas Mannerud
Finding string patterns within a text, or Regular Expressions as the are called, can be easily accomplished in VBScript. Below is a sample code that illustrates how to find the pattern “-L” from a search string.
First we must declare our search string and create our Regular Expression Object.
strSearchString = “TPA-FWR-L001″
Set objRegExp = New RegExp
We then [...]
Filed under: Scripts | 4 Comments »
