in reply to Remove digits from a string and add timestamp to the result
Hi Sunil, If i understand your requirement correclty,
try this,
Customer_."$timestmp"._100
Update:
Update1:$a=Customer100; $b=20130201; $a=~ /(.*?)(\d+)/; $a= $1."_".$b."_".$2; print $a;
$a=~ s/(.*?)(\d+)/$1\_$b\_$2/;
In Section
Seekers of Perl Wisdom