I'm trying to find sentences having only one digit number along with.
sentence="I'm 30 years old."
print(re.match("[0-9]", sentence)
then it returns
<re.Match object; span=(0, 1), match='3'>
but it's 30 which is two digit number actually, and I don't want it to be matched. seems like each consisting number 3 and 0 is recognized as one independent number. And these numbers are two-byte number which is usually used in my country.
How can I change my regular expression? Thanks!