How do I construct a regex to see if any of the multiple words provided are contained in a string in python?
I've tried the below, but it matches words that contain the string. I only want to match whole words.
re.match("(one|two|three)", search_string, re.IGNORECASE)
With the above, words like clone
would provide a match. However, I would like an exact match (e.g. one
).