module Regpendium
Overview
TODO Write documentation for Regpendium
Extended Modules
Defined in:
regpendium.crregpendium/ZipCode.cr
regpendium/patterns.cr
Constant Summary
-
VERSION =
"0.1.0"
-
ZIP_CODE =
{AD: "\bAD[1-7]d{2}\b", AM: "(\b(37)d{4}\b)|(\b[0-4]{1,1}d{3}\b)", AR: "(?!\b[IO])(\b[A-Z]?d{4,4}[A-Z]{3,3}\b)", AS: "\b96799\b", AT: "\b[1-9]d{3}\b", AU: "\bd{4}\b", AX: "\b22[1-9]d{2}\b", AZ: "\b[0-8]d{3}\b", BA: "\b[7-8]d{4}\b", BB: "(\bBB(01|02|03|04|05|06|07|08|10|11)d{3})\b", BD: "\bd{4}\b", BE: "\b[1-9]d{3}\b", BG: "\bd{4}\b", BH: "\b((1[0-2]|[2-9])d{2})\b", BM: "\b(CR|DD|DV|FL|HM|HS|MA|PG|SN|SB|WK)[ ]?[0-2][0-9]\b|\bGE[ ]?(CX|[0-2][0-9])\b", BN: "\b((PE|T[F,H]|B[B,C,D]|K[B,F])[1-4]|(T[C,H,A,G,B]|P[C,A,D]|B[T,G,H,J,E]|K[C,E,A])[1-3]|(KG|PB|T[D,E]|B[L,N,U,F,A,M])[1-2]|(BP1|K[H,D]1|BS8))d{3}\b", BR: "\bd{5}[-]?d{3}\b", BY: "\b(224|225|210|211|246|247|230|231|220|223|212|213)d{3}\b", CA: "\b([A-CEGHJ-NPR-TVXY]d[A-Z])[ ]?d[A-Z]d$\b", CC: "\b6799\b", CH: "\b[1-468]d{3}\b|\b([57][0-7]|9[0-6])d{2}\b", CK: "\bd{4}\b", CL: "\bd{7}\b", CN: "\b[0-9]d{5}\b", CR: "d{4,5}|d{3}-d{4}", CS: "\bd{5}\b", CV: "\b[1-9]d{3}\b", CX: "\b6798\b", CY: "\b[1-9]d{3}\b", CZ: "\bd{3}[ ]?d{2}\b", DE: "\b(W|O)-[1-9]d{3}\b|\bd{5}\b", DK: "\b[1-9]d{3}\b", DO: "\bd{5}\b", DZ: "\bd{5}\b", EC: "\b[A-Z]d{4}[A-Z]\b|\b(?:[A-Z]{2})?d{6}\b", EE: "\b[0-4]d{4}\b", EG: "\b[1-8]d{4}\b", ES: "\b([0-4]d|5[0-2])d{4}\b", ET: "\b[1-7]d{4}\b", FI: "\bd{5}\b", FO: "\b(FO[- ])?[1-9]d{2}\b", FR: "\bd{2}[ ]?d{3}\b", GE: "\bd{4}\b", GF: "(\b9[78]3d{2}[ ]CEDEX[ ]?d?\b)|(?![ ]CEDEX)(\b9[78]3d{2}CEDEXd?\b)|(\b9[78]3d{2}\b)", GL: "\b39d{2}\b", GN: "\bd{3}\b", GP: "\b9[78][01]d{2}\b", GR: "\b[1-8]d{2}[ ]?d{2}\b", GS: "\bSIQQ 1ZZ\b", GT: "\b[0-2]d{4}\b", GW: "\bd{4}\b", HM: "\bd{4}\b", HN: "\b[1-5]d{4}\b", HR: "\b(10|20|21|22|23|31|32|33|34|35|40|42|43|44|47|48|49|51|52|53)d{3}\b", HT: "\bd{4}\b", HU: "\b[1-9]d{3}\b", ID: "\b[1-9]d{4}\b", IL: "\b[1-9]d{4}\b", IN: "\b[1-9]d{5}\b", IO: "\bBBND 1ZZ\b", IQ: "\b(52|64|34|41|62|56|32|42|10|51|44|36|46|58|54)d{3}\b", IS: "\b[1-9]d{2}\b", IT: "\bd{5}\b", JO: "\b[1-7]d{4}\b", JP: "\bd{3}-d{4}\b", KE: "\bd{5}\b", KG: "\bd{6}\b", KH: "\bd{5}\b", KR: "\bd{3}[-]d{3}\b", KW: "\bd{5}\b", KZ: "\bd{6}\b", LA: "\bd{5}\b", LK: "\bd{5}\b", LR: "\bd{4}\b", LS: "\bd{3}\b", LT: "\bd{5}\b", LU: "\bd{4}\b", LV: "\bd{4}\b", MA: "\bd{5}\b", MC: "\b980d{2}\b", MD: "\bd{4}\b", ME: "\b8d{4}\b", MG: "\bd{3}\b", MK: "\bd{4}\b", MN: "\bd{6}\b", MQ: "\b9[78]2d{2}\b", MT: "\b[A-Z]{3}[ ]?d{2,4}\b", MU: "\b(d{3}[A-Z]{2}d{3})?\b", MV: "\bd{5}\b", MX: "\bd{5}\b", MY: "\bd{5}\b", NC: "\b988d{2}\b", NE: "\bd{4}\b", NF: "\b2899\b", NG: "\b(d{6})?\b", NI: "\b((d{4}-)?d{3}-d{3}(-d{1})?)?\b", NL: "\bd{4}[ ]?[A-Z]{2}\b", NO: "\bd{4}\b", NP: "\bd{5}\b", NZ: "\bd{4}\b", OM: "\b(PC )?d{3}\b", PF: "\b987d{2}\b", PG: "\bd{3}\b", PH: "\bd{4}\b", PK: "\bd{5}\b", PL: "\bd{2}-d{3}\b", PM: "\b9[78]5d{2}\b", PN: "\bPCRN 1ZZ\b", PR: "\b00[679]d{2}([ -]d{4})?\b", PT: "\bd{4}([-]d{3})?\b", PW: "\b96940\b", PY: "\bd{4}\b", RE: "\b9[78]4d{2}\b", RO: "\bd{6}\b", RS: "\bd{6}\b", RU: "\bd{6}\b", SA: "\bd{5}\b", SE: "\bd{3}[ ]?d{2}\b", SG: "\bd{6}\b", SH: "\b(ASCN|STHL) 1ZZ\b", SI: "\bd{4}\b", SJ: "\bd{4}\b", SK: "\bd{3}[ ]?d{2}\b", SM: "\b4789d\b", SN: "\bd{5}\b", SO: "\bd{5}\b", SZ: "\b[HLMS]d{3}\b", TC: "\bTKCA 1ZZ\b", TH: "\bd{5}\b", TJ: "\bd{6}\b", TM: "\bd{6}\b", TN: "\bd{4}\b", TR: "\bd{5}\b", TW: "\bd{3}(d{2})?\b", UA: "\bd{5}\b", US: "\bd{5}([ -]d{4})?\b", UY: "\bd{5}\b", UZ: "\bd{6}\b", VA: "\b00120\b", VE: "\bd{4}\b", WF: "\b986d{2}\b", XK: "\bd{5}\b", YT: "\b976d{2}\b", YU: "\bd{5}\b", ZA: "\bd{4}\b", ZM: "\bd{5}\b"}