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

Contact info: nnn-555-2013

s/2013/2014/g

Why is their phone not working???!

Replies are listed 'Best First'.
Re^3: search and replace
by Anonymous Monk on Feb 02, 2014 at 20:16 UTC
    Hey, don't criticise my code. It matches the spec.

      I tried calling the number to apologize, but it still doesn't work...

        Have you tried a fax machine? Phone numbers ending in 2014 usually have a fax machine hooked up.
Re^3: search and replace
by Laurent_R (Canon) on Feb 02, 2014 at 23:01 UTC
    Very interesting point. Upvoted. But, at the same time, the Anonymous Monk's proposal did fit perfectly the OP's requirement: "a perl script that will find all instances of 2013 on a website and change it to 2014".

      Agree that the OP's specs were met by s/2013/2014/g; the posting was just a way of wondering out loud whether the OP had considered potential collateral damage.