I want to remove numbers in the middle of letters, but I do not want to remove all numbers from the text, for example:
Vini12cius
I want to transform to Vinicius
, but without changing a possible CPF that will come after, I created the following regex:
r = re.sub(r'([0-9])','',"")
However, it deletes all text numbers, even those that are not between characters, I also tried:
r = re.sub(r'([a-z]*[0-9]*[a-z])','',"")
But I did not succeed either.