c# remove all except number from string code example
Example: remove all non alphabetic characters from string c#
var cleanString = new string(dirtyString.Where(Char.IsLetter).ToArray());
var cleanString = new string(dirtyString.Where(Char.IsLetter).ToArray());