Iterating Regex Named Groups
.net, regex
Solution
You can use `Regex.GroupNameFromNumber` to iterate over all the capturing groups in the regex and find their names.
Problem
I am trying to iterate each named group in a regular expression (i.e. - `(?<name>.*)`) and depending on the name of the group set an instance property or add it to a collection. Important part is I will never know the name of the group when using the regular expression so I cannot use the string indexer on my Match. Is there a way to extract the names for my groups within my Match?