try something like
string str= "............."; Regex reg = new Regex(@"<a[^>]+href\s*=\s*""(?<url>[^""]+)""[^>]*>[^<]*“证券之星”行情分析软件[^<]*</a>", RegexOptions.IgnoreCase | RegexOptions.Singleline); MatchCollection mc = reg.Matches(str);
foreach (Match m in mc)
{
Console.WriteLine(m.Groups["url"].Value);
}
string str= "............."; Regex reg = new Regex(@"<a[^>]+href\s*=\s*""(?<url>[^""]+)""[^>]*>[^<]*“证券之星”行情分析软件[^<]*</a>", RegexOptions.IgnoreCase | RegexOptions.Singleline); MatchCollection mc = reg.Matches(str);
foreach (Match m in mc)
{
Console.WriteLine(m.Groups["url"].Value);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货