Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: OS X vs. My Regex

by tall_man (Parson)
on Apr 16, 2003 at 19:04 UTC ( #251003=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($text =~  /^
                    (?:                  # Any amount of:
    ...
                     )*
                     \]                 # Followed by a close brace
                  /xs
    
  2. or download this
    my $next;
    while ( $next = (extract_bracketed($text,'[]','[^\[]*'))[0] )
    ...
       print "found matching brackets: *$next*\n";
    }
    print "found bracket error: $@\n" if $@;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2023-12-04 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (25 votes). Check out past polls.

    Notices?