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

Replies are listed 'Best First'.
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!