<PackageReference Include="System.Text.RegularExpressions" Version="4.0.11-beta-23409" />

GroupCollection

Returns the set of captured groups in a single match.
public int Count { get; }

Returns the number of groups in the collection.

public Group this[int groupnum] { get; }

Enables access to a member of the collection by integer index.

public Group this[string groupname] { get; }

Enables access to a member of the collection by string index.

Provides an enumerator that iterates through the collection.