I have a file that has repeating commas and I'd like to replace them with a single comma (effectively, creating a csv file). The challenge is that there can be an infinite number of repeating commas. For example,
field1,field2
field1,,field2
field1,,,,,,,,,field2
So how can I do the...