Answers for "c# how to remove characters from a string and only get one part"

C#
0

C# remove substring

int begin = myString.IndexOf('(');
int end = myString.IndexOf('"');
string altered = myString.Remove(begin + 1, end - begin - 1);
Posted by: Guest on January-27-2022
0

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# how to remove characters from a string and only get one part"

C# Answers by Framework

Browse Popular Code Answers by Language