Word matching python. For example: >&.

Word matching python. How to match whole word in a string.