I have this string:
goose goose goose random goose goose test goose goose goose
I'm using regular expression in TextMate to find any word that isn't goose
. therefore random
and test
.
So I tried this regular expression:
[^\sgoose\s]
But this isn't quite doing what I want. It's matching any character that isn't a space
or letters g
o
s
e
.
How can I find get the regular expression to match any whole word that isn't goose
? Therefore, there should be 2 matches random
and test
.