I have a Regular Expression Validation for a Single Capital Letter, but it does not work. When I put in a valid letter, I get the error message;
[DisplayName("Contract Letter")]
[RegularExpression("[A-Z]", ErrorMessage = "Must be a letter")]
[Required(ErrorMessage = "A Letter is required")]
public string ContractNo_Letter { get; set; }
I am only allowing the input of 1 letter.