$str !~ /XXX(?!\s*\n+YYY)/; [download]
Abigail
In reply to Re: how do I check for this rule by Abigail-II in thread how do I check for this rule by Anonymous Monk