This probably has a simple answer, but I must not have had enough coffee to figure it out on my own:
If I had a comma delimited string such as:
string li
The C# implementation of @PhiLho's JavaScript regular expression solution looks something like the following:
Regex regex = new Regex( @"\b", RegexOptions.ECMAScript | RegexOptions.Compiled ); string list = "Fred,Sam,Mike,Sarah"; string newList = regex.Replace(list,"'");