Regex, React, JavaScript, Nodejs, Development.
occurrences of any character followed by an uppercase letter (?!.*\s) => checks for something which is a non-space character (?=.*[!@#$*]) => checks for zero or more occurrences of any character followed by a any special characters from the list !, @, #, $ and * function isPasswordValid(password) {