<A href="tail.asp?ID=5316306&tID=5712071&ply=1">文字</A>
<A href="tail.asp?ID=5316307&tID=5712072&ply=1">文字</A>
<A href="tail.asp?ID=5316308&tID=5712073&ply=1">文字</A>
<A href="tail.asp?ID=5316309&tID=5712074&ply=1">文字</A>
<A href="tail.asp?ID=5316310&tID=5712075&ply=1">文字</A>
<A href="tail.asp?ID=5316311&tID=5712076&ply=1">文字</A>
<A href="tail.asp?ID=5316312&tID=5712077&ply=1">文字</A>取出tail.asp?ID=5316306&tID=5712071&ply=1这段链接,
他们都包含tail.asp
<A href="tail.asp?ID=5316307&tID=5712072&ply=1">文字</A>
<A href="tail.asp?ID=5316308&tID=5712073&ply=1">文字</A>
<A href="tail.asp?ID=5316309&tID=5712074&ply=1">文字</A>
<A href="tail.asp?ID=5316310&tID=5712075&ply=1">文字</A>
<A href="tail.asp?ID=5316311&tID=5712076&ply=1">文字</A>
<A href="tail.asp?ID=5316312&tID=5712077&ply=1">文字</A>取出tail.asp?ID=5316306&tID=5712071&ply=1这段链接,
他们都包含tail.asp
Regex regex = new Regex(strPattern, RegexOptions.IgnoreCase | RegexOptions.ExplicitCapture|RegexOptions.Multiline);
MatchCollection hrefMath = regex.Matches("stringHtml");
foreach (Match href in hrefMath)
{
Consolse.Write(href.Group["href"].value);}
试试
tail.asp?ID=5316306&tID=5712071&ply=1一段