java - how to create regex for password validation -
it @ least 7 characters , 1 of (number or capital case or special character) should there.
requirment is: 1) password must @ least of 7 characters 2) should contain 1 of number or capital case or special character.
for example password can be:
testertest testing6 tester@ok i tried not working:
^(?=.*\\d)|(?=.*[a-za-z])|(?=.*[!@#\$%&\*]).{7,20}$
Comments
Post a Comment