how to check if a string contains any alphabet in python code example Example: check if string contains alphabets python import re print(re.search('[a-zA-Z]', "anything"))