I'm trying to create a test that examines each line and passes if anything but one of three options is present in the line. I do not want to pass if a line contains any one of the following:
foo
bar
donut
So if the data shows:
stuff foo more stuff
junk bar other junk
some other garbage
It would pass because of some other garbage
If it contains:
stuff foo more stuff
junk bar other junk
more stuff here for foo and stuff
It would not pass.
This also would not pass:
junk donut junk
stuff donut stuff
yar donut me matey
But this would pass:
statement completely void of key words
I hope this makes sense. And I appreciate your help!
I've tried this: ^(?!.*foo:)
, but it seems to only test the first line. I know this is only for foo, but I was going to work on multiple options once I got it working.