Get the App
SLTechnology News&Howtos  ›  Development  › 

Code example for regular expressions in vbs

Shulou Source: shulou.com Published: 2022-06-03 08:55:22 11月15日 Update

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.

Tags: Object character regular expression search property string method pattern size position variable code three example multiple length example content actual Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Information MySQL Linux Redmi