in reply to search and replace is not working as expected...

Would using an actual XML::Parser translate these "garbage" characters from encoded entities into actual characters, or do you need to fix the previous program in the chain so it produces real XML? (Related link: XML::Simple)

  • Comment on Re: search and replace is not working as expected...

Replies are listed 'Best First'.
Re: Re: search and replace is not working as expected...
by Anonymous Monk on Nov 20, 2002 at 17:59 UTC
    Thanks everyone for the quick replies. I basically just ended up doing:
    $ARRGH =~ s/<doct>Customer trans\.(.*?)<\/doct>/<doct>Customer trans\. +<\/doct>/g;
    as per the first suggestion and that one worked great. Thanks a lot!