RegExMatch.SubExpressionCount
From Xojo Documentation
Read-Only Property (As Integer )
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.