[Visual Basic] Public Function GetGroupNames() As String () [C#] public string[] GetGroupNames(); [C++] public: String* GetGroupNames() []; [JScript] public function GetGroupNames() : String[];
Array of group names.
Even if capturing groups are not explicitly named, automatic names "1", "2", "3", etc. are given to the groups, so this collection can always be used to determine the number of groups.
Regex Class | Regex Members | System.Text.RegularExpressions Namespace