public string ExtractId(string key) { Group group = extractIdRegex.Match(key).Groups["Id"]; return group.Captures[0].Value; }