Data Type: String
The string to be searched.
A Matches collection containing one or more Match objects.
Performs a regular expression search against
string and returns the results in the
The method searches
using the RegExp object’s Pattern property.
The results are returned in the Matches collection, which is a collection of Match objects.
If the search finds no matches, the Matches collection is empty.
Remember to use the
statement to assign the Matches collection returned by the
Execute method to an object variable.
You can determine whether the Matches collection returned by the Execute method is empty by examining its Count property. It is empty if the value of Count is 0.
See the example for the RegExp.Pattern Property.