2012-08-24 144 views
0
<td width="16%" height="123" class="adult_normal_text"> 

<td height="123" width="86%" colspan="2" class="adult_normal_subheader">正则表达式替换HTML标签

<td width="54%" height="123" > 

我有三种格式< TD>中,

我想摆脱 “HEIGHT = 123”,

而且如果班上有班级存在tbdh123

如果没有班级a dd class =“tbdh123”。

谢谢

+0

所以你与命名一个明确元素和高度类替换显式高度?我不完全相信这是一个巨大的语义改进,尽管至少它是本地化的样式表。 –

+0

你想用什么语言? – Krycke

+1

http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags#1732454 – Lusitanian

回答