I have a large piece of text that is missing spaces after some of the periods. However the text also contains decimal numbers.
Here's what I have so far to fix the problem using regex (I'm using python):
re.sub(r"(?!\d\.\d)(?!\. )\.", '. ', my_string)
But the first escape group doesn't seem to work. It still matches periods in decimal numbers.
Here is sample text to make sure any potential solution works:
this is a.match
this should also match.1234
and this should 123.match
this should NOT match. Has space after period
this also should NOT match 1.23