import re
pat = ['ashu', 'gupta']
text = "my name is ashutosh gupta"
for pattern in pat:
print('i am seraching for: '+pattern)
if re.search(pattern, text):
print("Match")
else:
print("NOT mactch")
solved Regular rexpression in Python