I\'m trying to remove unused spans (i.e. those with no attribute) from HTML files, having already cleaned up all the attributes I didn\'t want with other regular expressions
With all your help I've published a script that does everything I need.
http://github.com/timabell/decrufter/