I have a string with multiple successive instances of ,
(comma+space) that I want to replace with a single instance. Is there a clean way to do so? I suppose RegEx can be helpful.
A naive example:
s = 'a, b, , c, , , d, , , e, , , , , , , f
The desired output:
'a, b, c, d, e, f
Naturally, the text can change, so the search should be for successive instances of ,
.