Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Answer: How do I match a number range?

( #66952=categorized answer: print w/ replies, xml ) Need Help??

Q&A > regular expressions > How do I match a number range? - Answer contributed by Anonymous Monk

It's probably best to use numeric comparisons, but if you absolutely need a regexp, you can use
/^5(2(7[89]|[89]\d)|3([0-8]\d|9[01]))$/

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2016-07-28 20:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (258 votes). Check out past polls.