时间:2021-07-01 10:21:17 帮助过:324人阅读
$pattern = '/^[a-zA-Z0-9]{6,10}$/';
$pattern = '/^[a-zA-Z0-9]{6,10}$/';
$pattern = '/^[a-zA-Z0-9]{6,10}$/';
求解............
$pattern = '/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,10}$/';
if(preg_match('/\d+/',$s) && preg_match('/[a-z]+/i',$s)){ echo 'yes';}else{ echo 'no';}
$pattern = '/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,10}$/';