VirtualString.Match(String, StringArray) Method

Top 

Description

Returns the number of regular expression matches between the calling String and the specified String argument. In order to return a match, the String argument must match the entire string - this can be accomplished using regular expressions. A successful pattern match always returns >= 1, where multiple matches come from user specified groupings.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Method Signature

VirtualString.Match(

String regularExpression,


StringArray stringArrayArgument)

 

 

Arguments

regularExpression


Description:

A regular expression that defines the pattern to match against.

 

 

stringArrayArgument


Description:

StringArray to hold the values of any groupings that match the regular expression.

 

 

 

Return Value

Type:

number

 

 

Returns the number of regular expression matches between the calling String and the regular expression specified by regularExpression.

 

Syntax

myVariable1 = myString1.ToLower.Match(myString2, myStringArray1);

 

 

See also

VirtualString Object

VirtualString.Match