I need to check a password that at least 8 in legnth and shoul have at least one number and at least one capital letter the rest can be lowercase but only alphanumeric, I tried this but it keeps on saying its invalid
$pattern = '/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]).{4 ,8+}$/';
$password =...