How to write a Python regex that matches strings with both words and digits, excluding digits-only strings?
I want to write a regex that matches a string that may contain both words and digits and not digits only.
I used this regex [A-z+\d*]
, but it does not work.
Some matched samples:
expression123
123expression
exp123ression
Not matched sample:
1235234567544
Can you help me with this one? Thank you in advance
source https://stackoverflow.com/questions/76297052/how-to-write-a-python-regex-that-matches-strings-with-both-words-and-digits-exc
Comments
Post a Comment