62,046
社区成员
发帖
与我相关
我的任务
分享
string s = @"<div class=""cl1"">sdfsdfsdf</div>";
MatchCollection matches = Regex.Matches(s, @"(?is)<div[^>]*?>(.*?)</div>");
foreach (Match match in matches)
Response.Write(match.Groups[1].Value + "<br/>");
Regex re = new Regex(@"(?is)<div\s(id|class)="".*?"">(.*?)</div>");
string str = "<div class=\"cl1\">sdfsdfsdf</div>";
Regex re = new Regex(@"(?is)(?<=>[^>]).*?(?=<[^<])");
foreach (Match ma in re.Matches(str))
{
Response.Write(ma.Value+ "<br/>");
}
string str = "<div class=\"cl1\">sdfsdfsdf</div>";
Regex re = new Regex(@"(?is)(?<=>[^>]).*?(?=<[^<])");
foreach (Match ma in re.Matches(str))
{
Respo
//dfsdfsdf