in reply to replacing continuesly occuring pattern
$xml =~ s/<(.*?)name>/<$1names>/g;
[id://CountZero] is right, I misread the original question. I thought the OP simply wanted to replace the "name" tags with "names." Oops.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: replacing continuesly occuring pattern
by CountZero (Bishop) on Apr 16, 2005 at 09:43 UTC |