How can I create password validation with case sensitivity and special characters detection for password detection in react native?
Use the below regex for a password check of uppercase lower case number and special characters
function checkPassword(str)
{
var re = /^(?=.*[0-9])(?=.*[!@#$%^&*])[a-zA-Z0-9!@#$%^&*]{6,16}$/;
return re.test(str);
}