http://qs1969.pair.com?node_id=568211


in reply to Re: Golf: Replacing part of a string with "*"
in thread Golf: Replacing part of a string with "*"

Here's 25: $string=~s/.(?=....)/*/g;

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Replies are listed 'Best First'.
Re^3: Golf: Replacing part of a string with "*"
by ikegami (Patriarch) on Aug 18, 2006 at 16:10 UTC
      Congrats to him; I didn't look that far into the replies.

      Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
      How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart