Regex quantifier does not work with my password validation – Javascript
I'm trying to do a password validation regex, it must ask for an upper case, a lower case, a special character, a number, and to not have any white spaces, so I implemented the following RegEx: /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[.!@#$%^&*])[^s][a-zA-Z0-9.!@#$%^&*][^s]{8,16}$/ But I need…