求解............
$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}$/';