or, in your case, as/PAT1(?!.*PAT2)/s
$string =~ /^ERROR(?!.*\b(?:Error processing Cancel Execution|license +will expire)\b)/ms
In reply to Re: Regex: negative look ahead
by JavaFan
in thread Regex: negative look ahead
by fcaw1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |