System.Text.RegularExpressions.Regex.Replace替换隐藏区域的正则表达式如何写?
有一段文章内容,但是内容里有一段隐藏区域<!-- <p>文章内容</p> -> 其它内容
现在想把<!-- <p>文章内容</p> -> 过滤掉 怎么写?
System.Text.RegularExpressions.Regex.Replace(source, @"<!--.*?-->", "", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
这样写不对,过滤不掉。