Help for this page

Select Code to Download


  1. or download this
    my $re_start = qr/../; #match string begining with two of anything (0 
    +or more times each!)
                           # but still a potential problem: would match a 
    +null string)
    ...
                        # (preceding the comma in your initial set of rege
    +xen) 
                      # with anything other than two instances of somethin
    +g
                     #  or another
    
  2. or download this
    c:\@Work\Perl\monks>perl -wMstrict -le
    "my $rx_dotdot = qr{ .. }xms;
    ...
       if '' =~ m{ $rx_counted? }xms;
    "
    C: match empty string: counted, quantified