I need a regular expression for validating password in asp.net mvc as follows :
- password must be minimum 8 characters and maximum infinity
- password should be alphanumeric
- password should not contain any special characters.
i have used [a-zA-Z0-9]+[\w.][a-zA-Z]+[\w.] but it does not fulfill the criteria
I’m not gonna explain you anything because you are just asking us to do your work but since is really easy, I’ll just give it to you.
^[a-zA-Z\d]{8,}$