in reply to regex: deleting empty (x)html tags
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: regex: deleting empty (x)html tags
by CrysC (Novice) on Feb 15, 2004 at 17:46 UTC | |
by jeffa (Bishop) on Feb 15, 2004 at 18:01 UTC | |
by CrysC (Novice) on Feb 15, 2004 at 20:37 UTC |