php preg match

$max)) { return FALSE; } else { return TRUE; } } ?> 5) && ($length <> 9)) { return FALSE; } return isDigits($code); case 'CA': if ($length <> 6) { return FALSE; } return preg_match ("/([A-z][0-9]){3}/", $code); } } ?>