View Single Post
Old 12-15-2005, 03:08 PM  
com
Confirmed User
 
Join Date: Aug 2003
Location: Portland, Oregon
Posts: 4,541
Quote:
Originally Posted by nibbi
I need to remove style content code from within <td> tags on hundreds of html pages. I figure the easiest way to do this would be a regular expression and a text editor.

So, anyone here know how to write a regular expression to turn this...

<td height="15" class="xl24" style="height:11.25pt">

Into this...

<td>
Thanks


simple the hardest bit is you may have to debug some of my escaping...

in VI:

%s/\<td height\=\"15\" class\=\"xl24\" style\=\"height:11.25pt\"\>/\<td\>/g
__________________

Real. Professional. Hosting.
.:Expect Nothing Less:.
320-078-843 :: www.realprohosting.com :: [email protected]
com is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote