As I read the question, you want to combine the point only if it is not preceded and not followed by numbers. For example, in the following list, you would like to combine a point on each line except the last, because it is the only one that has numbers on either side of it.
abc.
.def
xy
123.
.456
x.78
90.x
599.75
The accepted answer (?<!\d)\.(?!\d) matches only in the first three lines; this is equivalent to:
a dot, ( (not preceded by a digit) AND (not followed by a digit) )
If my interpretation is correct, you want something like this:
(?<!\d)\.|\.(?!\d)
... which is equivalent to:
(a dot, not preceded by a digit) OR (a dot, not followed by a digit)
In any case, it pays to be as precise as you can when it comes to harmonizing the text, especially when it comes to using calls.
source share