我有一个html代码。我用这样的正则表达式解析它
MatchCollection matches = Regex.Matches(go, @"photoWrapper""><div><a href=""(?<id>[^""]+?)\?");
我收到:
matches[0].Groups["id"].Value = "/group/47502002094086";
matches[1].Groups["id"].Value = "/dk";
matches[2].Groups["id"].Value = "/prostooglavnom";
如何编辑我的正则表达式或添加 smth,仅接收匹配项
matches[0].Groups["id"].Value = "47502002094086";
matches[1].Groups["id"].Value = "prostooglavnom";
任何帮助?=\ 完整的 html 代码: http: //pastebin.com/xEJNiD4G