Answers for "remove all non alphabetic characters from string c#"

C#
0

c# filter non alphanumeric characters

Regex rgx = new Regex("[^a-zA-Z0-9 -]");
str = rgx.Replace(str, "");
Posted by: Guest on March-25-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 "remove all non alphabetic characters from string c#"

C# Answers by Framework

Browse Popular Code Answers by Language