.Net从html页面中删除javascript和css代码块
我有html作为javascript和css代码块的字符串。
像这样的东西:
alert('hello world'); A:link {text-decoration: none} A:visited {text-decoration: none} A:active {text-decoration: none} A:hover {text-decoration: underline; color: red;}
但我不需要它们。 如何使用reqular表达式删除那些块?
快速’n’脏方法将是这样的正则表达式:
var regex = new Regex( "(\\