in reply to Re: regular expression search and replace
in thread regular expression search and replace

Thanks guys :) All your inputs helped!! However, For some reason tr/ didn't work. It wouldn't recognize the \s in the replacement as space.
  • Comment on Re^2: regular expression search and replace

Replies are listed 'Best First'.
Re^3: regular expression search and replace
by GrandFather (Saint) on Nov 19, 2014 at 00:12 UTC

    Go read the documentation again. tr/ doesn't do \s. It isn't really related to regular expression processing, it just happens to use the same binding operator (=~).

    Perl is the programming world's equivalent of English