Code example for regular expressions in vbs
This article shares with you the content of code examples of regular expressions in vbs. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
2. Test method
Performs a regular expression search on the specified string and returns a Boolean value indicating whether a matching pattern is found. The actual pattern of the regular expression search is set through the Pattern property of the RegExp object. The RegExp.Global property has no effect on the Test method.
If a matching pattern is found, the Test method returns True;, otherwise it returns False. The following code illustrates the use of the Test method.