I agree with others' posts, but if you have only this case and want straight answer to your question, here it is:
$str =~ s/>([^<>]*?)<([^<>]*?)<\//>$1<$2<\//g;
In reply to Re: Regular expression to replace xml data
by grizzley
in thread Regular expression to replace xml data
by dalegribble
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |