-5
是什么,才能有以下结果正则表达式的表达式,内任何 HTML TD任何形象?正则表达式HTML操作
来自:
<td width="7" height="50" nowrap>
<img src="/images/img_1.png" width="7" height="50" alt="" />
</td>
到:
<td width="7" height="50" nowrap background="/images/img_1.png"></td>
(http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml- self-contained-tags/1732454#1732454) – 2013-03-05 17:07:31
正则表达式+ HTML是一个坏主意。看看使用DOM解析器。 – 2013-03-05 17:08:27
不要。只是...不。 – John 2013-03-05 17:09:20