Regular Expression
1. Words not preceded by a specific word (eg. cat)
(?<!\b(?:cat)\W)\b\w+
2. Words not preceded by some words (eg. cat, good)
(?<!\b(?:cat|good)\W)\b\w+
3. Words preceded by specific word (eg. cat)
(?:(?<=\Wcat\W)|(?<=^cat\W))\w+
4. Words preceded by words (eg. cat, good)
(?:(?<=\W(?:cat|good)\W)|(?<=^(?:cat|good)\W))\w+