Chapter 9. Regular Expressions
Introduction to Regular Expressions
Regular expressions provide powerful facilities for character pattern-matching and replacing. Before the addition of regular expressions to the VBScript engine, performing a search-and-replace task throughout a string required a fair amount of code, comprising mainly of loops,
Mid functions. Now it is possible to do all this with one line of code using a regular expression.
/a pattern/). Instead, VBScript uses text strings assigned to the
Pattern property of a
RegExp object. In many ways this is superior to the traditional method because there is no new syntax ...