Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Redundant regex ([0-9]{2} | [0-9] {2, 4})?

by Popcorn Dave (Abbot)
on Feb 27, 2009 at 00:34 UTC ( #746718=note: print w/replies, xml ) Need Help??


in reply to Re: Redundant regex ([0-9]{2} | [0-9] {2, 4})?
in thread Redundant regex ([0-9]{2} | [0-9] {2, 4})?

Holy crap, I need glasses! I completely missed the space in there and didn't realize it until I increased the font size.

That makes perfect sense now. Duh.


To disagree, one doesn't have to be disagreeable - Barry Goldwater

  • Comment on Re^2: Redundant regex ([0-9]{2} | [0-9] {2, 4})?

Replies are listed 'Best First'.
Re^3: Redundant regex ([0-9]{2} | [0-9] {2, 4})?
by ikegami (Pope) on Feb 27, 2009 at 01:35 UTC

    Spaces removed, /[0-9]{2}/ does match a subset of what /[0-9]{2,4}/ matches.

    I'm sure what he wanted was just /[0-9]{2,4}/.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://746718]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2016-12-03 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (55 votes). Check out past polls.