remove all inline styles of an html element

by ada last modified Oct 17, 2013 05:58 PM
replace the entire style-attribute of html-tags
sed 's/ style="[^"]*"[^>]*//g' input.html > output.html

Thanks to Daniel Fett's article about "Greedy expressions" (in german):
http://www.danielfett.de/internet-und-opensource,artikel,regulaere-ausdruecke#GierigeAusdrcke