With this example,
whether or not apple
apple
not apple
How could I find either apple or not apple and exclude whether or not apple?
My attempt was to use negative lookbehind like
(?!whether or not)(([Nn]ot)?\s*apple)
but this finds all as
- whether or
not apple applenot apple