/// <summary> /// Gets the first match group from the specified match. /// </summary> /// <param name="g">The group collection.</param> /// <returns></returns> /// <exception cref="InvalidOperationException"></exception> public static Group First(this GroupCollection g) { return(g.First(x => true)); }