in reply to Regular expression to replace xml data
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regular expression to replace xml data
by Anonymous Monk on Jul 26, 2013 at 01:48 UTC |