Imagine you have the following String:
"badger randomword badger mushroom mushroom somethingelse"
I want to keep the words "badger" and "mushroom", and replace every other word with "mushroom":
"badger mushroom badger mushroom mushroom mushroom"
But I can't find a regex to match "everything except the words badger and mushroom". Can you help me?