Help for this page

Select Code to Download


  1. or download this
    c:\@Work\Perl\monks>perl -wMstrict -le
    "my $s = 'kkkaaabc';
    ...
     ^^^^^^  /k*a*/ matched 'kkkaaa' at offset 0
    'kkkaaabc'
       /a*/ matched '' at offset 0
    
  2. or download this
    my $match = $s =~ m{ ($rx) }xms;
    
    ...
        print 'no match';
        next;
        }