Answer the question
In order to leave comments, you need to log in
How to check if there are letters in a string in Python?
I can't write a regular expression.
It is necessary to determine if there are letters (any, mostly Cyrillic) in the string.
PS Solution below in comments, thanks longclaps
print(re.search(r'[^\W\d]', 'someth111ing'))
print(re.search(r'[^\W\d]', 'something' ))
print(re.search(r'[^\W\d]', '12443'))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question