regexps useful for web stuff
</?table[^>]*>|</?tr[^>]*>|</?td[^>]*>|</?thead[^>]*>|</?tbody[^>]*>
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:
</?table[^>]*>|</?tr[^>]*>|</?td[^>]*>|</?thead[^>]*>|</?tbody[^>]*>|</?font[^>]*>
source: http://alex.tsd.net.au/2006/09/12/regular-expression-to-remove-html-tables/
Color values: #[0-9a-f]{3,6}|rgb\(.+\)|rgba\(.+\))
Everything but color values: ^((?!#[0-9a-f]{3,6}|rgb\(.+\)|rgba\(.+\)).)*$\n