Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

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

Help for this page

Select Code to Download


  1. or download this
    $ cat /tmp/x
    my $regex = '(2[0-4]|1?[0-9])?[0-9]|25[0-5]';
    ...
    300
    300 matched
    ^C
    
  2. or download this
    my $regex = '(2[0-4]|1?[0-9])?[0-9]|a';
    
  3. or download this
    my $regex = '(2[0-4]|1?[0-9])?[0-9]|25[0-5]';
    
  4. or download this
    my $regex = qr/(2[0-4]|1?[0-9])?[0-9]|25[0-5]/;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2021-12-01 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (13 votes). Check out past polls.

    Notices?