I'm trying to match a pattern that starts with "START", ends with "END" unless it contains "NOPE_1" or "NOPE_2"
The result I'm going for is :
xxxxxxxxxSTARTxxxxxxxxxxxxxxxxxxxENDxxxxxxxxx -> match
xNOPE_1xxSTARTxxxxxxxxxxxxxxxxxxxENDxxxxxxxxx -> match
xxxxxxxxxSTARTxxxxxxxxxxxxxxxxxxxENDxxNOPE_2x -> match
xxxxxxxxxSTARTxxxxxxxxNOPE_1xxxxxENDxxxxxxxxx -> no match
xxxxxxxxxSTARTxxxxxxxxNOPE_2xxxxxENDxxxxxxxxx -> no match
I tried using lookahead/behind but didn't succeed..
I am using python and re
Thanks for any help !