Problem statement:
Inserts an extra space after a period if the period is directly followed by a letter.
Below is code:
string="This is very funny and cool.Indeed!"
re.sub("\.[a-zA-Z]", ". ", string)
and output:
"This is very funny and cool. ndeed!"
It is replacing the first character after '.'.
Any solution for this?