This site shows some regular expressions that can be used to remove table tags quickly... they can also be used to edit the attributes of HTML tags in general. You can use them in the Find/Replace functions of most html editors; including Dreamweaver, Notepad++, and TextWrangler.
This was a HUGE help to me since I'm quite attached to CSS based layouts and removing the tables was using the manual Find/Replace technique.
Hope this helps someone
Last modified: 13 Aug 2008 8:07 PM
dani
4 Sep 2008 4:19 PM
Here's a basic example..
You could use this regex in the search field:
<tr.*?>
which would select all tr tags with or without attributes. Replace them with whatever you want, you can use any other html tag to achieve the same result.
arkid
10 Dec 2008 4:30 PM
just to add, for anyone with dreamweaver.
Simply goto the Commands/CleanUp HTML menu option and then tick the "specify tags" option and add the tags of tables here.
So simply enter table,td,tr
...and voila!
TOCDCO
10 Dec 2008 5:37 PM
what does this do? why would this be necessary?
NTM
13 Jan 2009 10:59 PM
Just wondering, Dani, how it's going with getting the templates out of tables? I've considered trying this for a new client, and wondered if there were some issues I should watch out for when cleaning up the code.
dani
2 Feb 2009 3:45 PM
Oh.. I didn't notice this thread has been bumped.
NTM - I stripped out most of the tables except for the ones in the checkout pages to save time, but I still tried to simplify them a bit. The main issues to watch out for is making sure the Viart comment tags stay intact because they determine where/if dynamic data is placed within the template. You should also experiment with where to place your <div> and other tags in relation to the comment tags.
Edited: Great Dreamweaver tip arkid :)
Last modified: 2 Feb 2009 3:59 PM
NTM
19 Feb 2009 4:20 PM
Ah, the comment tags - thanks for that bit of info. I'm hoping to work on this when I have some free time (whenever that might be!)
Thanks!
Also, thanks to arkid also, this tip has been extremely helpful on a number of occasions.