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