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

Re^2: Is this a bug in perl regex engine or in my brain?

by Crackers2 (Parson)
on Oct 06, 2015 at 17:49 UTC ( #1143953=note: print w/replies, xml ) Need Help??


in reply to Re: Is this a bug in perl regex engine or in my brain?
in thread Is this a bug in perl regex engine or in my brain?

Your regex no longer matches 10-99. You'd need something like
my $regex = '(2[0-4]|1[0-9]|[1-9])?[0-9]';
to fix that.

Replies are listed 'Best First'.
Re^3: Is this a bug in perl regex engine or in my brain?
by Athanasius (Bishop) on Oct 07, 2015 at 00:23 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1143953]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2020-10-29 02:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (266 votes). Check out past polls.

    Notices?