if (preg_match('/^[4379BJKLMNPQTVWXR][a-z][0-9]{8}$/i', $serial)) { # Successful match} else { # Match attempt failed}