Answers for "c# check if number or letter"

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 if the value is alphabet and numbers only only in c#

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

Code answers related to "c# check if number or letter"

C# Answers by Framework

Browse Popular Code Answers by Language