Regex, React, JavaScript, Nodejs, Development.
if(/(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s)(?=.*[!@#$*])/.test(password)) { console.log('password is valid'); } else { console.log('password is invalid') } } isPasswordValid('Abc@123'); // password is valid isPasswordValid('Abc123'); // password is invalid 3. Valid date format: \d{4}-\d{2}-\d{2}