Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 studying the Monastery: (18)
As of 2015-03-05 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (146 votes), past polls