I have a project in php, I am quite new programming and I never touch that language, my question is basically what the title says, I need to see if a variable has 1 uppercase, 1 lowercase, 1 digit and 8 characters minimum I currently have this if
if(!preg_match('^(?=\w*\d)(?=\w*[A-Z])(?=\w*[a-z])\S{8,}$', $password)){
/*
*
*/
}
'pattern'=>'^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$'
HTML control works fine, but I want to do it in Backend too.
Thank you.