Answers for "c# replace all non numeric characters"

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

Code answers related to "c# replace all non numeric characters"

C# Answers by Framework

Browse Popular Code Answers by Language