I have a log file with entries like the following:
Input
php notice bob
php notice winner
php notice blah winner
php notice asfsdf test
php erro)r bob
php error winner
php error trash winner
php error junk test
print this line
Output
php notice winner
php notice blah winner
php error winner
php error trash winner
print this line
What I'm trying to do is match all lines from a log file unless - it contains php followed by error or notice. If it contains php followed by error or notice, then it should only match if winner is also in the string. My regex-foo is weak. Thanks.
