in reply to (Challenge)(for new users) Replacing a text

36 from me
perl -i -pe's/Will(?= Emigh)/YAPH/g'
Boris
  • Comment on Re: (Challenge)(for new users) Replacing a text

Replies are listed 'Best First'.
Re^2: (Challenge)(for new users) Replacing a text
by robharper (Pilgrim) on Sep 24, 2004 at 14:25 UTC

    Does that include the surname in the changed version? Or am I missing something?

      Take a look! Just inspect the source of this page. My solution replace all occurrence of Will Emigh with YAPH Emigh.
      Boris

        It does indeed, borisz. I apologise for doubting you -- and many thanks for teaching me something new about regexps.