Help for this page

Select Code to Download


  1. or download this
    my $string = "ERROR blah license will expire";
    if ($string =~ /^ERROR\b.+?(?:Error processing Cancel Execution|licens
    +e will expire)\b/m) {
        print "NOT MATCHED\n";
    ...
    else {
        print "MATCHED\n";
    }
    
  2. or download this
    if ($string =~ /^ERROR\b/m and $string !~ /\b(?:Error processing Cance
    +l Execution|license will expire)\b/) {
        print "MATCHED\n";
    }
    else {
        print "NOT MATCHED\n";
    }