Help for this page

Select Code to Download


  1. or download this
    my $str = "start b2 end start b2 b2 end start b2 end";
    if ($str =~ /start(?!.*start.*)(.*?b2.*?b2.*?end)/) {
       print "Regexp matched!";
    }