import re
rx = re.compile(r'\S+@\S+')
string = """This text contains an email@address.com somewhere"""
if rx.search(string):
print("Somewhere in there is an email address")
aW1wb3J0IHJlCgpyeCA9IHJlLmNvbXBpbGUocidcUytAXFMrJykKCnN0cmluZyA9ICIiIlRoaXMgdGV4dCBjb250YWlucyBhbiBlbWFpbEBhZGRyZXNzLmNvbSBzb21ld2hlcmUiIiIKCmlmIHJ4LnNlYXJjaChzdHJpbmcpOgoJcHJpbnQoIlNvbWV3aGVyZSBpbiB0aGVyZSBpcyBhbiBlbWFpbCBhZGRyZXNzIik=