小唯快跑啊
var html = @"<span>(9482662)</span>";var reg = new Regex(@"<span>\((?<num>\d+)\)</span>");var matchs=reg.Matches(html);var nums = new List<int>();for (var i = 0; i < matchs.Count; i++)
{ var num = Int32.Parse(matchs[i].Groups["num"].Value); if (!nums.Contains(num))
{
nums.Add(num);
}
}
nums.ForEach(n => Console.WriteLine(n));nums里就是