public static void Main()
{
Regex rgx = new Regex(@"[S|s]et-[C|c]ookie: (?<cookieName>w+)=(?<cookieValue>w+).*");
//// 全部匹配
//MatchCollection mc = rgx.Matches(@"Set-Cookie: mm_lang=zh_CN; Domain=wx.qq.com; Path=/; Expires=Thu, 19-Jul-2018 12:14:16 GMT; Secure");
//Console.WriteLine(mc.Count);
//Match mth = mc[0];
// 只匹配第一个
Match mth = rgx.Match(@"Set-Cookie: mm_lang=zh_CN; Domain=wx.qq.com; Path=/; Expires=Thu, 19-Jul-2018 12:14:16 GMT; Secure");
GroupCollection gc = mth.Groups;
Console.WriteLine(gc[@"cookieName"].Value + gc[@"cookieValue"].Value + gc[@"domain"].Value);
}