Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Golf: Replacing part of a string with "*"

by japhy (Canon)
on Aug 18, 2006 at 16:04 UTC ( #568211=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://568211]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2022-05-21 00:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?