I have a text like this :
text = "hey , i am new here . number is 8,5%"
And i want my output to be like this :
hey, i am new here. number is 8,5%
So am using this regex code :
text= re.sub(r'\s*([.,?:])\s*', r'\1 ',text)
The output of this code is :
hey, i am new here. number is , 5%
I don't want the numbers to be touched with my regex code.
Am using Python3