Implemented "not matching" as a regex

Removed the special case of the word in the beginning of a match not
being the same word as the one at the end.