Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
and as an example, here's what $ARRGH would contain:#get rid of the bad doct characteres if ($ARRGH =~ /<className>ibZtfacr008_chg<\/className>/) { $ARRGH =~ s/<doct>Customer trans\.(.*)<\/doct>/<doct>Customer tran +s\.<\/doct>/g; }
<event> <className>ibZtfacr008_chg</className> <oldvalue> <x>foo</x> <y>bar</y> <doct>Customer trans. garbage</doct> </oldvalue> <newvalue> <x>bar</x> <y>foo</y> <doct>Customer trans. garbage</doct> </newvalue> </event>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: search and replace is not working as expected...
by mikeirw (Pilgrim) on Nov 20, 2002 at 16:20 UTC | |
by Aristotle (Chancellor) on Nov 20, 2002 at 17:42 UTC | |
|
Re: search and replace is not working as expected...
by pg (Canon) on Nov 20, 2002 at 15:54 UTC | |
|
Re: search and replace is not working as expected...
by chromatic (Archbishop) on Nov 20, 2002 at 17:35 UTC | |
by Anonymous Monk on Nov 20, 2002 at 17:59 UTC |