A regular expression for password
- It should have one number
- One character compulsorily
- Not case sensitive.
- Special character is not mandatory.
xyz.match(/^(?:[0-9]+[a-z]|[a-z]+[0-9])[a-z0-9]*$/i)
In this if we give special character it is not accepting
asd12 //working
Asd123 //working
Asd123@ //not working