Now that I've thought about it, try 's/\d/x/g;' -- '+' is unnecessary and
this should work as you want --
- Dwalu
.peace
--
I am an important person in this world -
Now is the most important time in my life -
My mistakes are my best teachers -
So I will be fearless.
- Student Creed
On Wed, 11 Jul 2001, Dwalu Z. Khasu wrote:
=>How about 's/\d+?/x/g;'
=>
=> - Dwalu
=>.peace
=>--
=>I am an important person in this world -
=>Now is the most important time in my life -
=>My mistakes are my best teachers -
=>So I will be fearless.
=> - Student Creed
=>
=>On Wed, 11 Jul 2001, Fernando wrote:
=>
=>=>I have a credit card number that I want to change to email a reciept to the
customer. This is that I want:
=>=>
=>=>I have this number: e.j. 1111 8578 596 8552
=>=>I want to convert all the number to "x" like that xxxx xxx xxxx
=>=>
=>=>when I use this:
=>=>
=>=>$number = "1111 8578 596 8552";
=>=>$number =~ s/\d+/x/g;
=>=>
=>=>Perl give only one "x" in the result.
=>=>
=>=>If any body can help me please!!!
=>=>
=>
=>