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

jwkrahn beat you to 25 with $string=~s/.(?=.{4})/*/g;

Replies are listed 'Best First'.
Re^4: Golf: Replacing part of a string with "*"
by japhy (Canon) on Aug 19, 2006 at 00:38 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