Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Extracting string from a file

by oiskuu (Hermit)
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2016-02-11 09:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (366 votes), past polls