Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Regex to extract number from text file

by dxxd116 (Beadle)
on Feb 18, 2009 at 13:49 UTC ( #744753=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Regex to extract number from text file
in thread Regex to extract number from text file

You need to change the code:

my $search =~ m/ClearQuest\: \(Total of 18 licenses issued\; Total of +(\d+)/;
to:
(my $search)=$_=~ m/ClearQuest\: \(Total of 18 licenses issued\; Total + of (\d+)/;


Comment on Re^3: Regex to extract number from text 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://744753]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-11-24 23:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (147 votes), past polls