日期:2014-05-17  浏览次数:20961 次

正则移除属性
字符串  < img  style="width:14%;" ....>  ...........
< table   style="border-width:1px;border-style:solid;border-collapse:collapse;" ....> .....



现在需要将里面的所有style去掉
 < img   ....>  ...........
< table  ....> .....


如何用正则将字符串里的style连同属性全部移除?
正则

------解决方案--------------------
Regex.Replace(html,"style=\"[^\"]*\"","");