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 $@;