RegExp exclusion, looking for a word not followed by another
regex
Solution
You don't say what flavor of regex you're using, but this should work in general:
Tom(?!\s+Thumb)
Problem
I am trying to search for all occurrences of "Tom" which are not followed by "Thumb". I have tried to look for ``` Tom ^((?!Thumb).)*$ ``` but I still get the lines that match to Tom Thumb.