Regular Expression Attribute for checking for a number of non-alphanumeric characters


[RegularExpression(@“.[a-zA-Z0-9 ]+.”, ErrorMessage = “Passwords must contain at least 1 non-alphanumeric character.”)]

Kevin Wilson

.NET developer, JavaScript enthusiast, Android user, Pebble wearer, sometime musician and occasional cook.

Leave a Reply

Your email address will not be published. Required fields are marked *