111,126
社区成员
发帖
与我相关
我的任务
分享
string RegexString = "(?i)<meta[^>]*name=""([^""]+)""[^>]*>";
string pageStr = @"<meta name=""description"" content=""6267 companies listed in 'Agriculture Companies', you can submit free company information here."" />";
string resString = "";
Regex reg = new Regex(RegexString, RegexOptions.IgnoreCase);
MatchCollection matches = reg.Matches(pageStr);
foreach (Match match in matches)
{
resString += match.Groups[1].Value;
}
Response.Write(resString+"/Test");