I want to match strings containing MYSTUFF in all cases, except when MYSTUFF is preceded by ENABLED_. So that the following would match:
MYSTUFFm_MYSTUFFMYSTUFFIsGreatallOf_MYSTUFF
but the following wouldn't:
ENABLED_MYSTUFFm_ENABLED_MYSTUFFENABLED_MYSTUFFIsGreatallOf_ENABLED_MYSTUFF
I tried several variations using negative lookahead (variations of \w*(?!.*ENABLED_)MYSTUFF\w*), and conditional (variations of (?(?!=ENABLED_)(MYSTUFF))), but I did not manage to get the results I'm after.
Is what I want even doable with regexes?