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