Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: howto replace part of a string

by CountOrlok (Friar)
on Jun 14, 2006 at 15:26 UTC ( #555274=note: print w/ replies, xml ) Need Help??


in reply to Re: howto replace part of a string
in thread howto replace part of a string

Is this what you're trying to do?

$a = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; $a =~ s/^\S{5}(\S{4})\S+/$1xxxx/ ;
-imran


Comment on Re^2: howto replace part of a string
Download Code
Re^3: howto replace part of a string
by jeanluca (Deacon) on Jun 14, 2006 at 16:04 UTC
    You're right, but I realize now, because I didn't understand the expression, that it is not what I want!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-12-21 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (101 votes), past polls