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
a simple solution without regular expressions :
string items = inputString.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries); string result = String.Join(",", items);