import re
if re.search("123", s):
print("Find match")
else:
print("No Match")
#match objecct
re.search("123", s)
re.search('[0-9][0-9][0-9]', 'foo456bar')
print(re.search('[0-9][0-9][0-9]', '34t6bar'))
re.search('ba[artz]', 'foobazqux')
re.search('\w{3}', '##2ba-')
re.search('\W{2}', '##2ba-')