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

Re: Re: Regular Expression Question

by larryk (Friar)
on Mar 27, 2001 at 17:00 UTC ( [id://67562]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Regular Expression Question
in thread Regular Expression Question

you are right to suspect that this would not work - the single \d as opposed to \d+ before the % would mean that the regex would fail to match unless the % was between 0 and 9.

what I expect you are looking for is for(<>) { /(\d+)%/; print if $1 >= 88 }

Replies are listed 'Best First'.
Re: Re: Re: Regular Expression Question
by SilverB1rd (Scribe) on Mar 27, 2001 at 18:29 UTC
    Thanks larry. Typo on my part. It was supposed to be (\d+)%

    ------
    The Price of Freedom is Eternal Vigilance

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://67562]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.