in reply to Re: prune xml of empty elements
in thread prune xml of empty elements

s@<(.*?)></\1>@@g;

I know one guy who writes regexes like that.