In my C # class I am a property to decorate with data annotation to validate the 5 digit number. The number should be minimum and maximum 5 digits in length. But it is not always saying valid. What's wrong with my regular expression? \ d [0-9] group {5} if you know the required length. {1,5} If you want to specify minimum (1) and maximum (5) lengths, you can do it.
No comments:
Post a Comment