RegExpr.Match property returns the text that matches a regular expression or its sub-expression. The index specifies whether the returned text will suit a whole expression or only a sub-expression. The total number of found sub-expressions is specified by the
|RegExprObj||An expression, variable or parameter that specifies a reference to a RegExpr object|
The property is applied to the following object:
The property has the following parameter:
Specifies the item’s index. The text that suits the whole expression has an index of 0, part of the text that suits the first sub-expression - 1, and so on.
A string that contains the matching text.
If the specified index does not exist or the sub-expression was not found this property returns empty string.
The following code obtains the text that matches a regular expression and posts the text to the test log.