c# how to check if string contains only alphabets code example Example: how to check that string has only alphabet in c# Regex.IsMatch(input, @"^[a-zA-Z]+$");