So ... now that you have your question answered, let me ask one.
Why do you need to delete these empty elements in the first place?!?
I use a little tool called HTLMArea for CMS sites. This allows the CMS user to enter HTML as HTML by turning <textarea>'s into WYSIWYG editors.
Just seems to me that you are trying to solve the symptom and not the problem, but i am glad you found your solution. :)
Oh ... and by the way ... did you try HTML Tidy first? It strips those empty elements for you. ;)
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to Re: regex: deleting empty (x)html tags
by jeffa
in thread regex: deleting empty (x)html tags
by CrysC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |