private static int ParseMatchedInt(Match match, string matchGroupName) { return int.Parse(match.Groups[matchGroupName].Value); }