Example Strings:
Dandelion The animal dog is blue
The animal cat is blue
Alcohol The animal cow is blue water
I need to use a regex that will capture all instances that starts with the word 'The' and end with the word 'blue', but doesn't have the word 'cat' between these 2 words.
What I tried:
The.*?(?!cat)blue
Desired Result:
2 Matches:
The animal dog is blue
The animal cow is blue
Any help would be appreciated greatly