r = r'(?!.*66)get.*on'
txt = "get your kicks on Route 66"
res = re.search(r, txt)
I only want res=None if the exclusion text "66" would be included in the result text i.e. between "get" and "on". In this case it's outside the resulting text so I want to see a result but instead it's checking if "66" is anywhere in the whole text and returns res=None. Is there a way to do what I'm trying to do?