if (/cat/ and ! /housecat/) {... # or if (/cat\b/ and ! /housecat\b/) {... # etc etc