日期:2014-05-17 浏览次数:20892 次
string e="<ul><li><span>1.</span> <a href='http://s.ianhai.com' target=_blank>s.ianhai.com</a></li><li><span>2.</span> <a href='http://51tttg.com' target=_blank>51tttg.com</a></li><li><span>3.</span> <a href='http://www.ued6.com' target=_blank>www.ued6.com</a></li><li><span> </ul> ";
string f = @"(?i)(?<=<a\b[^>]*?href=(['""]))[^<>]+(?=\1)";
foreach(Match m in Regex.Matches(e,f))
Console.WriteLine(m.Value);