Pradeep Sethi wrote:
> 
> Hi,
> 
> I have a number 342389842452.
> 
> how do a substitute of everything with X but last 4 digits using regular
> expressions
> 
> like xxxxxxxx2452


$_ = 342389842452;
s/\d*(\d{4})/xxxxxxxx$1/;
print;


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to