I am processing string like
This is python3 and learning it takes 100 hours
I want to remove only digits like 100 but want to keep digits when it is part of anything like python3.
I am trying the regex
text = re.sub('[0-9]', '', text)
but it is not working as expected. Help is appreciated.