Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Extracting numerical information

by hdb (Prior)
on Jun 27, 2013 at 18:55 UTC ( #1041076=note: print w/ replies, xml ) Need Help??


in reply to Extracting numerical information

Extracting all four numbers.

use strict; use warnings; my $string = "66.411716: ABCDE:M WALL 0x0164764a, RX 0x03bb9d42, TS 5" +; my @numbers = $string =~ /(0x[0-9a-f]+|\d+\.?\d*)/g; print "@numbers\n";


Comment on Re: Extracting numerical information
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2014-12-28 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls