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

Re^2: Extracting string from a file

by oiskuu (Friar)
on Nov 12, 2013 at 03:19 UTC ( #1062113=note: print w/ replies, xml ) Need Help??

in reply to Re: Extracting string from a file
in thread Extracting string from a file

A nitpick. The \d is a character class, and it MAY go into brackets, to be combined with the rest.
The following are equivalent: /[0-9]/, /[[:digit:]]/, /[\d]/, /\d/.

Your regex could also be written as: /\|TOTAL\s+([\d.]+)%\s+([\d.]+)/.

Comment on Re^2: Extracting string from a file
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2015-11-26 08:31 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (696 votes), past polls