The following PHP regex removes all empty tags:
#<[^\/>]*>([\s]?)*<\/[^>]*>#u
I want to remove empty tags that do not match:
<div style="clear:both"></div>
I tried:
#^(<div style="clear:both"></div>)<[^\/>]*>([\s]?)*<\/[^>]*>#u
...but it didn't work.
How do I add a negation?