Establish regular expressions
The method for constructing regular expressions is the same as for creating mathematical expressions. That is, using multiple metacharacters and operators to combine small expressions to create larger expressions.
You can construct a regular expression by putting together various components of an expression pattern between a pair of delimiters. For Visual Basic scripting Edition, the delimiter is a pair of forward slash (/) characters. For example:
/expression/
For VBScript, a pair of quotation marks ("") is used to determine the bounds of the regular expression. For example:
"Expression"
In the two examples shown above, regular expression patterns (expression) are stored in the Pattern property of the RegExp object.
The component of a regular expression can be a single character, character set, character range, selection between characters, or any combination of any of these components.