Let's say I have the following lines:
1. blah app prod blah blah
2. blah app prod blah ignore
3. blah app staging blah blah
4. blah app staging blah ignore
5. blah app prod blah blah blah ignore blah blah
6. blah blah
I want to write a regex a match all lines that contain "app prod" and do NOT contain "ignore". So I want to grab:
1. blah app prod blah blah
How can I write this regex?
I've tried the following but it's returning lines 1, 2, 5:
.*app prod.*((?!ignore).)*