📅  最后修改于: 2022-03-11 14:54:06.430000             🧑  作者: Mango
if(preg_match((?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$, $_POST['password']):
echo 'matched';
else:
echo 'not matched';
endif;