import re
ptr2="hdjfhdjh@@@@"
str1=re.compile(r'^[a-zA-Z0-9]+$')
if str1.search(ptr2):
print (" string matches %s",ptr2)
else:
print (" string not matches pattern %s",ptr2)
aW1wb3J0IHJlCnB0cjI9ImhkamZoZGpoQEBAQCIKc3RyMT1yZS5jb21waWxlKHInXlthLXpBLVowLTldKyQnKQppZiBzdHIxLnNlYXJjaChwdHIyKToKICAgcHJpbnQgKCIgc3RyaW5nIG1hdGNoZXMgJXMiLHB0cjIpCmVsc2U6CiAgIHByaW50ICgiIHN0cmluZyBub3QgbWF0Y2hlcyBwYXR0ZXJuICVzIixwdHIyKQ==