I am trying to search for whole words with in a string and not sure how to do it.
str1 = 'this is'
str2 ='I think this isnt right'
str1 in str2
gives me True, but I want it to return False. How do I do this? Thank you.
I tried str2.find(str1), re.search(str1,str2), but I am not getting them to return nothing or a False.
Please help. thanks.