Using the following RegularExpression in Model:
[RegularExpression(@"^\d+$")]
public int ano_da_configuracao { get; set; }
I get the following result:
Itriedthefollowingwaytoacceptonlyletters:
[RegularExpression(@"/^[A-ZÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ ]+$/")]
Thinking you could achieve the same result, but it did not work.
How can I correct this expression to work as the first example?