check value is alphabet in C# code example
Example 1: how to check that string has only alphabet in c#
Regex.IsMatch(input, @"^[a-zA-Z0-9]+$");
Example 2: how to check that string has only alphabet in c#
Regex.IsMatch(input, @"^[a-zA-Z]+$");
Regex.IsMatch(input, @"^[a-zA-Z0-9]+$");
Regex.IsMatch(input, @"^[a-zA-Z]+$");