Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

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

Help for this page

Select Code to Download


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (21)
As of 2014-09-22 14:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (195 votes), past polls