I have a method that builds up a comma separated list returned as a string.
Unfortunately it sometimes returns stuff like
Code:
Tom,,,,,,Dick,,,,,,Harry
I tried replace to return single commas e.g
Code:
Replace (strNames, ",,", ",")
but it only replaces some of them. e.g.
Code:
Tom,,,Dick,,,Harry
Is there a recursive ReplaceAll function or do I have to write my own?