RegExMatch.SubExpressionCount

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aRegExMatch.SubExpressionCount

Supported for all project types and targets.

Number of SubExpressions that are available with the search just performed.

Notes

Regular Expressions support both \number and $number syntax for SubExpressions.

SubExpressions allow replacement of parts of the pattern.