go to
http://www.regexlib.com/Search.aspxenter "url" in the textbox and click on "search" button, or try
using System.Text.RegularExpressions; string str="<a href=\"list.asp?Page=1&boardid=33&t=656727&p=11&tp=%B9%AB%BF%AAICSI%B5%C4MP3%B7%BD%B0%B8%C9%E8%BC%C6\">下一页</a>"; Regex re = new Regex(@"<a[^>]+href=""(?<url>[^""]+)""",RegexOptions.IgnoreCase); Match m = re.Match(str);
if (m.Success)
Console.WriteLine(m.Groups["url"].Value);
http://www.regexlib.com/Search.aspxenter "url" in the textbox and click on "search" button, or try
using System.Text.RegularExpressions; string str="<a href=\"list.asp?Page=1&boardid=33&t=656727&p=11&tp=%B9%AB%BF%AAICSI%B5%C4MP3%B7%BD%B0%B8%C9%E8%BC%C6\">下一页</a>"; Regex re = new Regex(@"<a[^>]+href=""(?<url>[^""]+)""",RegexOptions.IgnoreCase); Match m = re.Match(str);
if (m.Success)
Console.WriteLine(m.Groups["url"].Value);
string pattern = "<a.*href=\"([^\"]*)\"[^/]*</a>";
Regex regex = new Regex( pattern, RegexOptions.IgnoreCase );
Match m = regex.Match( xx );
if (m.Success)
Response.Write(m.Groups[1].Value);