Answers for "remove letter and symbol from string with numbers c#"

C#
3

remove character from string C#

// our string
string myString = "[email protected]";

// lets remove the @ symbol
// here we replace our "@" in our string to an empty string 
string newString = myString.Replace("@", string.empty);
 
Console.Writeline(newString);
// output should look like this: testgmail.com
Posted by: Guest on August-17-2021
0

remove control characters from string c#

string input; // this is your input string
string output = new string(input.Where(c => !char.IsControl(c)).ToArray());
Posted by: Guest on August-20-2020

Code answers related to "remove letter and symbol from string with numbers c#"

C# Answers by Framework

Browse Popular Code Answers by Language