Answers for "c# remove specific character from string"

C#
3

c# remove specific character from string

string phrase = "this is, a string with, too many commas";
phrase = phrase.Replace(",", "");
Posted by: Guest on March-01-2020
-1

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"
Posted by: Guest on March-31-2021

Code answers related to "c# remove specific character from string"

C# Answers by Framework

Browse Popular Code Answers by Language