remove a specific char from string c# code example
Example 1: c# remove specific character from string
string phrase = "this is, a string with, too many commas";
phrase = phrase.Replace(",", "");
Example 2: remove specific character from string c#
string input = "1, 2, 55";
//This will split the string for everything that is in between ", "
string[] inputSplit = input.Split(", ");
//items in inputSplit = "1" "2" "55"