Solve this using an HTML parser. Once you have a parse tree, removing empty elements is trivial.
Abigail
In reply to Re: regex: deleting empty (x)html tags
by Abigail-II
in thread regex: deleting empty (x)html tags
by CrysC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |