正则问题 ,求帮帮忙
把< > 标记 用正则替换成 < >
------解决方案--------------------
Regex objRegExp = new Regex("<(.
------解决方案--------------------\n)+?>");
string strOutput = objRegExp.Replace(strHtml, "#");
strOutput = objRegExp.Replace(strOutput, "");
strOutput = strOutput.Replace("<", "<");
strOutput = strOutput.Replace(">", ">");
------解决方案--------------------为什么非要用正则做事呢?直接用这个不就OK了
直接用
Server.UrlEncode(htmlString);