I want to match the word gay unless it is part of the word megayacht. I know I can use negative lookahead and negative lookbehind to exclude gayacht or megay from the match, e.g
(?<!me)gay
and
gay(?!acht)
but using
(?<!me)gay(?!acht)
will still exclude megay and gayacht from the match, which is not what I want. I can't find a way to require both simultaneously.