Machine.UrlStrong.Translation.Parsing.RegexExtensionMethods.GroupCaptures C# (CSharp) Method

GroupCaptures() public static method

public static GroupCaptures ( this match, string groupName ) : IEnumerable
match this
groupName string
return IEnumerable
    public static IEnumerable<Capture> GroupCaptures(this Match match, string groupName)
    {
      var group = match.Groups[groupName];

      for (int i = 0; i < group.Captures.Count; i++)
      {
        yield return group.Captures[i];
      }
    }
  }
RegexExtensionMethods