I need to parse a string so the result should output like that:
\"abc,def,ghi,klm,nop\"
But the string I am receiving could looks more like tha
Search for ,,+ and replace all with ,.
,,+
,
So in C# that could look like
resultString = Regex.Replace(subjectString, ",,+", ",");
,,+ means "match all occurrences of two commas or more", so single commas won't be touched. This can also be written as ,{2,}.
,{2,}