Archive for the ‘Sample Code – RegEx’ Category


RegEx (Regular Expressions)

‘=========================================== ‘ NAME: VBSCriptControlExcel.vbs ‘ AUTHOR: Neal Walters ‘ DATE : 3/19/2006 ‘ http://VBScript-Training.com ‘ ‘ Related Regular Expression (RegEx) Websites: ‘http://www.regular-expressions.info/ ‘http://regxlib.com/ ‘ RegEx tester: http://regxlib.com/RETester.aspx ‘=========================================== ‘——-Loop and show each match ————- ‘http://www.microsoft.com/technet/scriptcenter/resources/qanda/apr05/hey0415.mspx Set objRegEx = CreateObject(“VBScript.RegExp”) objRegEx.Global = True objRegEx.Pattern = “\d{4}” strSearchString = “John=1234 Fred=5678 Susan=1212″ WScript.Echo “SearchString=” & strSearchString Set [...]

Read More...