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