/// <summary> /// Dump parenthesized subexpressions found by a regular expression matcher object /// </summary> /// <param name="r">Regex object with results to show</param> internal static void ShowParens(ref Regex r) { // Loop through each paren for (int i = 0, e = r.matchCount; i < e; i++) { // Show paren register Log.Comment("$" + i + " = " + r.Group(i)); } }