Regex.GetGroupNumbers Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an array of capturing group numbers that correspond to group names in an array.
public:
cli::array <int> ^ GetGroupNumbers();
public int[] GetGroupNumbers();
member this.GetGroupNumbers : unit -> int[]
Public Function GetGroupNumbers () As Integer()
Returns
An integer array of group numbers.
Remarks
Groups can be referred to using both their assigned number and their name (if one was provided). The returned array is ordered so that each number maps to the same group name returned by GetGroupNames() at the corresponding index.