class CountryUtils {

    static boolean isCanadianPostalCodeValid(@NonNull String postalCode) {
        return Pattern.matches("^(?!.*[DFIOQU])[A-VXY][0-9][A-Z] ?[0-9][A-Z][0-9]$", postalCode);
    }

}