remove alphabets from string keep numbers only in c# 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());