62,242
社区成员




Dictionary<string, string> dic = new Dictionary<string, string>();
MatchCollection m = Regex.Matches(input, @"(?i)<a[^href]*\s*href=""([^>]+)"">(.*?)</a>");
foreach (Match mx in m)
{
dic.Add(mx.Groups[1].Value, mx.Groups[2].Value);
Console.WriteLine(mx.Groups[1].Value + "\t" + mx.Groups[2].Value);
}
/*
http://www.m1905.com/yx/film/c1p2.html 2
http://www.m1905.com/yx/film/c1p3.html 3
*/
(?i)(?<=<a\shref=").*?(?=")