Answers for "how to remove all non numeric characters from a string c#"

C#
3

c# replace all non numeric characters

var input = "+33 06 06-78-75 aze";
var result = new string(input.Where(c => char.IsDigit(c)).ToArray());
//result => "3306067875"
Posted by: Guest on August-23-2020
0

remove all non alphabetic characters from string c#

var cleanString = new string(dirtyString.Where(Char.IsLetter).ToArray());
Posted by: Guest on October-30-2020

Code answers related to "how to remove all non numeric characters from a string c#"

C# Answers by Framework

Browse Popular Code Answers by Language