$str =~ s@<(.*?)/>@@g; 1 while $str =~ s@<(.*?)>\s*</\1>@@g; $str =~ s@(?<=>)\s+(?=\n)@@g;
In reply to Re^2: prune xml of empty elements
by happy.barney
in thread prune xml of empty elements
by metaperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |