Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: data cleaning - removing text from variables

by Ryszard (Priest)
on May 21, 2004 at 07:11 UTC ( #355199=note: print w/ replies, xml ) Need Help??


in reply to data cleaning - removing text from variables

Regex's are your friend.

#perl -e '$_="1aa23.4a";$_=~s/[a-f]//gi;print "$_\n"' 123.4 #


Comment on Re: data cleaning - removing text from variables
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2014-09-20 15:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (160 votes), past polls