Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Remove digits from a string and add timestamp to the result

by sen (Hermit)
on Jan 02, 2013 at 11:43 UTC ( [id://1011251]=note: print w/replies, xml ) Need Help??


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:

$a=Customer100; $b=20130201; $a=~ /(.*?)(\d+)/; $a= $1."_".$b."_".$2; print $a;
Update1:
$a=~ s/(.*?)(\d+)/$1\_$b\_$2/;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1011251]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-19 07:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found