[摘要]RegexOptions.IgnoreCase); string[] strAry = new string[regObj.Matches(htmlStr).Count]; ... RegexOptions.IgnoreCase);
string[] strAry = new string[regObj.Matches(htmlStr).Count];
int i = 0;
foreach (Match matchItem in regObj.Matches(htmlStr))
{
strAry[i] = GetImgUrl(matchItem.Value);
i++;
}
return strAry;
}
private string GetImgUrl(string imgTagStr)
{
string str = "";
Regex regObj = new Regex("http://.+.(?:jpg |
关键词: c# 自动解析页面中图片链接并下载到本地