I've a code below to find a match keyword in a string. My question is how can I include multiple keywords in "find"? Should I use array or something.
What is the best way to handle multiple keyword that we would like to search. Assume all keyword must be matched, then result is PASS.
Tried this. Failed..
("\bpython\b", "\bgreat\b")?? Any ideas?
import re
string = "python is great!"
find = ("\\bpython\\b")
if re.search(find, string):
print ("found")
else:
print ("not found")