Regular Expression to remove HTML tables

Just figured out this regular expression to remove all tables from a HTML document:


Extremely useful for cleaning up prehistoric mark-up with a text editor that supports regular expression find-and-replace searches.

And to go all the way, this one removes font tags too:


5 thoughts on “Regular Expression to remove HTML tables”

Comments are closed.