62,041
社区成员
发帖
与我相关
我的任务
分享
Regex reg = new Regex(@"(?<=<body .*>).*(?=</body>)", RegexOptions.IgnoreCase & RegexOptions.Multiline);
Match m = reg.Match(HttpUtility.HtmlEncode(pageSource));
if (m.Success)
{
Response.Write(m.Value);
}
Regex reg = new Regex(@"(?is)(?<=<body[^>]*>).*(?=</body>)");