62,269
社区成员
发帖
与我相关
我的任务
分享
string url = String.Empty;
string strPattern = @"正则表达式";
MatchCollection mc = Regex.Matches(strHtml, strPattern, RegexOptions.IgnoreCase | RegexOptions.Compiled);
foreach (Match m in mc)
{
url = m.Groups[0].Value.ToString().Trim();
}