Hello,
I would like to verify that a password does well:
- At least a tiny
- At least one uppercase
- At least one number
I struggle a bit with regex java, could you help me? For example, one of many attempts is:
Code:
password = "abcxyz";
/ / Test to check it's a word character
val = Pattern.games("\\w ", Password);
if (val == true ) val = Pattern.games("[a-z]", Password);
if (val == true ) val = Pattern.games("[A-Z]", Password);
if (val == true ) val = Pattern.games("[0-9]", Password);
The program is not running, if you have any idea about it then please let me know.
Bookmarks