我有一个字符串未能通过以下要求:-
$uid = ca11a15e (the value called from database)
function _checkSn($uid)
{
$match1 = preg_match('/^p[a-z\d][a-z\d][1-6][a-z]\d{2}e$/',$uid);
$match2 = preg_match('/^p[a-z\d][a-z\d]school$/',$uid);
$match3 = preg_match('/^p[a-z\d][a-z\d]master$/',$uid);
$match4 = preg_match('/^p[a-z\d][a-z\d]ee01$/',$uid);
$doesMatch = ($match1 || $match2 || $match3 || $match4);
return $doesMatch;
}
实际上,相位在说什么?我该如何修改它以便 $uid 可以通过检查?