dedecms正则匹配
正则: width=\"[0-9][0-9][0-9]\"| width=[0-9][0-9][0-9]| height=\"[0-9][0-9][0-9]\"| height=[0-9][0-9][0-9],说明:过虑height、Width。
style=\"width:\(.*)" 说明:过虑 style 里面的Width
------------------------------------------------------
正则:<div style=\"[^>]*\">|<div [^>]*>|</div>|<div>,注意:匹配<div style="">或者<div id="">。
------------------------------------------------------
正则: style=\"[^"]*\"| style=[^"]*,注意:匹配Style="border:"
------------------------------------------------------
正则:<style([^>]*)>(.*)</style> ,注意:匹配<style type="text/css"></style>
------------------------------------------------------
正则:<font [^>]*>|<font>|</font>|<strong [^>]*>|<strong>|</strong> ,注意:匹配<font>和<strong>
------------------------------------------------------
正则: border="[0-9]"| border=[0-9],注意:匹配border=""
------------------------------------------------------
正则:<span [^>]*>|<span>|</span> ,注意:匹配<span>
------------------------------------------------------
正则: id=[^ ]*| id=\"[^ ]*\",注意:匹配id=“”
------------------------------------------------------
正则: title=[0-9][^ ]*| title=\"[0-9][^ ]*\"| alt=[0-9][^ ]*| alt=\"[0-9][^ ]*\"| alt=[a-z][^ ]*| alt=\"[a-z][^ ]*\",注意:匹配Title或者alt
------------------------------------------------------
正则:<!--[^>]*-->,说明:匹配HTML注释
------------------------------------------------------
正则:<script([^>]*)>(.*)</script>,说明:匹配<script></script>之间的全部内容
------------------------------------------------------
正则: class=[a-z][^ |^>]*| class=\"[a-z][^ |^>]*\",说明:清理class="",经过充分测试
------------------------------------------------------
正则:<table([^>]*)>|</table>|<td>|</td>|<tbody>|</tbody>|<tr>|</tr>
------------------------------------------------------
正则:<h2 [^>]*>|<h2>|</h2>| align=left|<em>|</em>|<center>|</center>|<a([^>]*)>|</a>
------------------------------------------------------

浙公网安备 33010602011771号