Regex, React, JavaScript, Nodejs, Development.
console.log('email is invalid') } } isEmailValid('abc@11gmail.com'); // email is valid isEmailValid('abc11gmail.com'); // email is invalid 2. Password validation: (?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s)(?=.*[!@#$*]) Explanation: This regular expression checks for a Password which should contain at