all,
As i am sure we all know, MS products turn out horrible code. At the moment it is my job to clean up said code leaving standard html (sucks to be me). One thing that would help me would to be able to do a regex search and replace. For instance:
i have this line:
<td width="0" height="0" class=xl336909 style='border-top:none;border-left:none; width:140pt'>
I want to have a regex expression that would take that line and turn it into:
<td>
the only idea i had was (using vi)
:%s/<td.*>/<td>
this selects the entire line after <td ... not what i want. any ideas?
As i am sure we all know, MS products turn out horrible code. At the moment it is my job to clean up said code leaving standard html (sucks to be me). One thing that would help me would to be able to do a regex search and replace. For instance:
i have this line:
<td width="0" height="0" class=xl336909 style='border-top:none;border-left:none; width:140pt'>
I want to have a regex expression that would take that line and turn it into:
<td>
the only idea i had was (using vi)
:%s/<td.*>/<td>
this selects the entire line after <td ... not what i want. any ideas?