Ananda has asked for the wisdom of the Perl Monks concerning the following question:
"<name>abc</name><name>def</name>"
This pattern can occur n number of times.
This pattern pattern needs to be replaced with "<names>abc,def,ghi</names>.
Can this be acheived by the search and replace method or is there another approach. Please advice . Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: replacing continuesly occuring pattern
by CountZero (Bishop) on Apr 16, 2005 at 09:34 UTC | |
|
Re: replacing continuesly occuring pattern
by hv (Prior) on Apr 16, 2005 at 15:39 UTC | |
|
Re: replacing continuesly occuring pattern
by Tanktalus (Canon) on Apr 16, 2005 at 16:48 UTC | |
|
Re: replacing continuesly occuring pattern
by friedo (Prior) on Apr 16, 2005 at 09:34 UTC | |
by CountZero (Bishop) on Apr 16, 2005 at 09:43 UTC |