I have a this regex;
("(?=.*[a-z]).*")
("(?=.*[0-9]).*")
("(?=.*[A-Z]).*")
("(?=.*[!@#$%&*()_+=|<>?{}\\[\\]~-]).*")
that checks a password with requirements: length =8, then three of the following - a lowerCase, an upperCase, a digit, special character. 3 of the above 4 + length of 8 is required.
What I have works until there is a space in the password, then it prints the wrong message. In other-words, how do I include whitespace in my list of special characters, thanks!