Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Recursive regular expression weirdness

by johngg (Canon)
on Mar 29, 2006 at 22:47 UTC ( [id://540073]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    #
    ...
           "succeeded\n" :
           "failed\n";
    }
    
  2. or download this
    Cont(ains balanced( nested Br(ack)ets )in t)he text
         Match succeeded
    ...
    
    ab(c)d)e
         Match succeeded
    
  3. or download this
    ...
    our $rxNest;
    ...
           )
       };
    ...
    
  4. or download this
    ...
        if($string =~ /$rxNest/)
    ...
            print "     Match failed\n";
        }
    ...
    
  5. or download this
    ...
    our @memoList;
    ...
            print "     Match failed\n";
        }
    ...
    
  6. or download this
    Cont(ains balanced( nested Br(ack)ets )in t)he text
         Match succeeded
         (ack)
         ( nested Br(ack)ets )
         (ains balanced( nested Br(ack)ets )in t)
    
  7. or download this
    Con(tains i(mbalan(ced Br(ack)ets, )one c)lose missing
         Match succeeded
    ...
         (ack)
         (ced Br(ack)ets, )
         (mbalan(ced Br(ack)ets, )one c)
    
  8. or download this
    #!/usr/bin/perl
    #
    ...
            print "     Match failed\n";
        }
    }
    
  9. or download this
    String: Cont(ains balanced( nested Br(ack)ets )in t)he text
         Match succeeded
    ...
    
    String: ab(c)d)e
         Match failed
    
  10. or download this
    #!/usr/bin/perl
    #
    ...
            print "     Match failed\n";
        }
    }
    
  11. or download this
    String: Cont(ains balanced( nested Br(ack)ets )in t)he text
         Match failed
    ...
    
    String: ab(c)d)e
         Match failed
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2024-04-18 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found