Answers for "check if given string all only letters c#"

C#
6

c# check if string is only letters and numbers

if (textVar.All(c => Char.IsLetterOrDigit(c))) {
    // String contains only letters & numbers
}
Posted by: Guest on May-19-2020
0

how to check that string has only alphabet in c#

Regex.IsMatch(input, @"^[a-zA-Z]+$");
Posted by: Guest on September-11-2020

Code answers related to "check if given string all only letters c#"

C# Answers by Framework

Browse Popular Code Answers by Language