Regular Expression allows for complex pattern matching and replacing. Regular Expression has a vast multitude of uses, in my opinion, and is one of the most underused features in VBScript. Transactional File Mgt. In Part 1 we discussed a high-level overview of using the RegExp object in VBScript, as well as special regular expression characters that could be used for position matching. Regular expression contains several special characters to help search for a particular set of characters.
Braces allow the matching of a specific set of characters.
Note that the braces search for a single character. The number of characters within the braces indicates what the valid characters to search for are, but, again, single characters are checked. The hyphen character can be used to denote a range of characters. For example, 4.uys would match strings like 4Guys , 45uys , and 4zuys . Character classes are really useful for matching complex patterns.