in reply to Regular Expression Question
Please tell us exactly what you want to do? If your trying to pull the information out of that output try using a regex.
Something like this,
You would then be able to test $5 to see if it is over 80.
NOTE My regex is not in anyway the best and I'm not even sure if that would work. But I hope you get the idea. If you want to know more read up on regex. UPDATE My post was outdated before I even post it :)
------
The Price of Freedom is Eternal Vigilance
Something like this,
m/(\/.+) +(\d) +(\d) +(\d+) +(\d)% +(.+)/
You would then be able to test $5 to see if it is over 80.
NOTE My regex is not in anyway the best and I'm not even sure if that would work. But I hope you get the idea. If you want to know more read up on regex. UPDATE My post was outdated before I even post it :)
------
The Price of Freedom is Eternal Vigilance
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Regular Expression Question
by larryk (Friar) on Mar 27, 2001 at 22:00 UTC | |
by SilverB1rd (Scribe) on Mar 27, 2001 at 23:29 UTC |
In Section
Seekers of Perl Wisdom