- or download this
<tag#1>BLA</tag#1><tag#2>BLA</tag#1><tag#3>BLA</tag#1>
- or download this
<tag#1>BLA</tag#1><tag#2>BLA</tag#2><tag#3>BLA</tag#3>
- or download this
s{(<(\w+.*?)>[^<]*?)</.+?>}{$1</$2>}g
- or download this
s/>\s*</>\n</g; # normalize whitespace between adjacent tags
s/([^\n])</$1\n</g; # make sure every tag begins a new line
s/>([^\n])/>\n$1/g; # make sure every tag is followed by newline