Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Stripping out specific numbers

by mrras25 (Acolyte)
on Dec 12, 2013 at 14:48 UTC ( #1066855=note: print w/replies, xml ) Need Help??


in reply to Stripping out specific numbers

Thank you all for the help - I used a combination of the 2 replies to get the disired result. To answer what I done prior to that, it was very basic. First I matched 4 or 5 number strings and then I striped out any characters leaving undisered results.
if($string =~ m/(\d\d\d\d+)/ || $string =~ m/(\d\d\d\d\d+)/){ $string =~ s/\D//g; }
As you can see not so good and not so desired... again thank you for your help.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1066855]
help
Chatterbox?
[LanX]: Nodes to consider
[shmem]: LanX: uhm, that looks like work to be done for me.
shmem frowns at LanX for being stirred out of laziness

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2017-04-27 19:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (512 votes). Check out past polls.