Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-10-01 16:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (29 votes), past polls