Reglerna för postnummer

Extend gör en automatisk verifiering av postnumret och nedan hittar ni logiken som appliceras.

Informationen finns även som en Excel att hämta ut för er. 



LandLandskodValideringsUttryckExempel
AFGHANISTANAF^.+$*
ALANDAX^([0-9][0-9][0-9][0-9][0-9])$12345
ALBANIAAL^.+$*
ALGERIADZ^.+$*
AMERICAN SAMOAAS^.+$*
ANDORRAAD^([0-9][0-9][0-9])$123
ANGOLAAO^.+$*
ANGUILLAAI^.+$*
ANTARCTICAAQ^.+$*
ANTIGUA AND BARBUDAAG^.+$*
ARGENTINAAR^([0-9][0-9][0-9][0-9])$1234
ARMENIAAM^([0-9][0-9][0-9][0-9])$1234
AUSTRALIAAU^([0-9][0-9][0-9][0-9])$1234
AUSTRIAAT^([0-9][0-9][0-9][0-9])$1234
AZERBAIJANAZ^([a-zA-Z][a-zA-Z][0-9][0-9][0-9][0-9])$AZ1234
BAHAMASBS^.+$*
BAHRAINBH^.+$*
BANGLADESHBD^([0-9][0-9][0-9][0-9])$1234
BARBADOSBB^([0-9][0-9][0-9][0-9][0-9][0-9])$123456
BELARUSBY^([0-9][0-9][0-9][0-9][0-9][0-9])$123456
BELGIUMBE^([0-9][0-9][0-9][0-9])$1234
BELIZEBZ^.+$*
BENINBJ^.+$*
BERMUDABM(^([a-zA-Z][a-zA-Z][0-9][0-9])$)|(^([a-zA-Z][a-zA-Z][a-zA-Z][a-zA-Z])$)ab 12 | ab cd
BHUTANBT^.+$*
BOLIVIABO^.+$*
BOSNIA AND HERZEGOVINABA^([0-9][0-9][0-9][0-9][0-9])$12345
BOTSWANABW^.+$*
BOUVET ISLANDBV^.+$*
BRAZILBR^([0-9][0-9][0-9][0-9][0-9])$12345
BRITISH INDIAN OCEAN TERRITORYIO^.+$*
BRUNEI DARUSSALAMBN^([0-9][0-9])$12
BULGARIABG^([0-9][0-9][0-9][0-9])$1234
BURKINA FASOBF^.+$*
BURUNDIBI^.+$*
CAMBODIAKH^([0-9][0-9][0-9][0-9][0-9])$12345
CAMEROONCM^.+$*
CANADACA^([a-zA-Z][0-9][a-zA-Z][0-9][a-zA-Z][0-9])$a1b2c3
CANARY ISLANDSIC^.+$*
CAPE VERDECV^([0-9][0-9][0-9][0-9])$1234
CAYMAN ISLANDSKY^.+$*
CENTRAL AFRICAN REPUBLICCF^.+$*
CHADTD^([0-9][0-9][0-9][0-9][0-9])$12345
CHILECL^([0-9][0-9][0-9][0-9][0-9][0-9][0-9])$1234567
CHINACN^([0-9][0-9][0-9][0-9][0-9][0-9])$123456
CHRISTMAS ISLANDCX^([0-9][0-9][0-9][0-9])$1234
COCOS (KEELING) ISLANDSCC^[0-9][0-9][0-9][0-9]$1234
COLOMBIACO^.+$*
COMOROSKM^.+$*
CONGOCG^.+$*
CONGO, THE DEMOCRATIC REPUBLIC OF THECD^.+$*
COOK ISLANDSCK^.+$*
COSTA RICACR(^([0-9][0-9][0-9][0-9])$)|(^([0-9][0-9][0-9][0-9][0-9])$)1234, 12345
COTE D'IVOIRECI^.+$*
CROATIAHR^([0-9][0-9][0-9][0-9][0-9])$12345
CUBACU^([0-9][0-9][0-9][0-9][0-9])$12345
CYPRUSCY^([0-9][0-9][0-9][0-9])$1234
CZECH REPUBLICCZ^([0-9][0-9][0-9][0-9][0-9])$12345
DENMARKDK(^([0-9][0-9][0-9][0-9])$)|(^([0-9][0-9][0-9])$)123, 1234
DJIBOUTIDJ^.+$*
DOMINICADM^.+$*
DOMINICAN REPUBLICDO^([0-9][0-9][0-9][0-9][0-9])$12345
EAST TIMORTP^.+$*
ECUADOREC^.+$*
ECUADOREQ^.+$*
EGYPTEG^([0-9][0-9][0-9][0-9][0-9])$12345
EL SALVADORSV^([0-9][0-9][0-9][0-9])$1234
EQUATORIAL GUINEAGQ^.+$*
ERITREAER^.+$*
ESTONIAEE^([0-9][0-9][0-9][0-9][0-9])$12345
FALKLAND ISLANDS (MALVINAS)FK^.+$*
FAROE ISLANDSFO^([0-9][0-9][0-9][0-9])$1234
FIJIFJ^.+$*
FINLANDFI^([0-9][0-9][0-9][0-9][0-9])$12345
FRANCEFR^([0-9][0-9][0-9][0-9][0-9])$12345
FRENCH GUIANAGF^.+$*
FRENCH POLYNESIAPF^.+$*
FRENCH SOUTHERN TERRITORIESTF^.+$*
GABONGA^([0-9][0-9].+[0-9][0-9])$12*34
GAMBIAGM^.+$*
GEORGIAGE^([0-9][0-9][0-9][0-9][0-9][0-9])$123456
GERMANYDE^([0-9][0-9][0-9][0-9][0-9])$12345
GHANAGH^.+$*
GIBRALTARGI^.+$*
GREECEGR^([0-9][0-9][0-9][0-9][0-9])$12345
GREENLANDGL^([0-9][0-9][0-9][0-9])$1234
GRENADAGD^.+$*
GUADELOUPEGP^.+$*
GUAMGU(^([0-9][0-9][0-9][0-9][0-9])$)|(^([0-9][0-9][0-9][0-9][0-9][-][0-9][0-9][0-9][0-9])$)12345, 12345-6789
GUATEMALAGT^([0-9][0-9].+[0-9].+[0-9][0-9])$12*3*45
GUINEAGN^.+$*
GUINEA-BISSAUGW^([0-9][0-9][0-9][0-9])$1234
GUYANAGY^.+$*
HAITIHT^.+$*
HEARD ISLAND AND MCDONALD ISLANDSHM^.+$*
HOLY SEE (VATICAN CITY STATE)VA^.+$*
HONDURASHN^([0-9][0-9][0-9][0-9][0-9])$1234
HONG KONGHK^.+$*
HUNGARYHU^([0-9][0-9][0-9][0-9])$1234
ICELANDIS^([0-9][0-9][0-9])$123
INDIAIN^([0-9][0-9][0-9][0-9][0-9][0-9])$123456
INDONESIAID^([0-9][0-9][0-9][0-9][0-9])$12345
IRANIR^([0-9][0-9][0-9][0-9][0-9][ ][0-9][0-9][0-9][0-9][0-9])$1 234 512 345
IRAQIQ^.+$*
IRELANDIE^.+$*
ISRAELIL(^([0-9][0-9][0-9][0-9][0-9])$)|(^([0-9][0-9][0-9][0-9][0-9][0-9][0-9])$)12345, 1234567
ITALYIT^([0-9][0-9][0-9][0-9][0-9])$12345
JAMAICAJM^([a-dA-D][a-zA-Z][a-zA-Z][0-9][0-9])$abc12
JAPANJP^([0-9][0-9][0-9][0-9][0-9][0-9][0-9])$1234567
JERSEYJE^.+$*
JORDANJO^([0-9][0-9][0-9][0-9][0-9])$12345
KAZAKSTANKZ^([0-9][0-9][0-9][0-9][0-9][0-9])$123456
KENYAKE^([0-9][0-9][0-9][0-9][0-9])$12345
KIRIBATIKI^.+$*
KOREA, DEMOCRATIC PEOPLE´S REPUBLIC OFKP^.+$*
KOREA, REPUBLIC OFKR(^([0-9][0-9][0-9])$)|(^([0-9][0-9][0-9][0-9][0-9])$)|(^([0-9][0-9][0-9][0-9][0-9][0-9])$)123, 12345,123456
KOSOVOXK^([0-9][0-9][0-9][0-9][0-9])$12345
KUWAITKW^.+$*
KYRGYZSTANKG^([0-9][0-9][0-9][0-9][0-9][0-9])$123456
LAO PEOPLE'S DEMOCRATIC REPUBLICLA^.+$*
LATVIALV^([0-9][0-9][0-9][0-9])$1234
LEBANONLB(^([0-9][0-9][0-9][0-9])$)|(^([0-9][0-9][0-9][0-9][ ][0-9][0-9][0-9][0-9])$)1234, 1234 5678
LESOTHOLS^([0-9][0-9][0-9])$123
LIBERIALR^([0-9][0-9][0-9][0-9])$1234
LIBYALY^.+$*
LIECHTENSTEINLI(^([0-9][0-9][0-9][0-9])$)|(^([0-9][0-9][0-9][0-9][0-9])$)1234, 12345
LITHUANIALT(^([0-9][0-9][0-9][0-9])$)|(^([0-9][0-9][0-9][0-9][0-9])$)1234, 12345
LUXEMBOURGLU^([0-9][0-9][0-9][0-9])$1234
MACAUMO^.+$*
MACEDONIAMK^([0-9][0-9][0-9][0-9])$1234
MADAGASCARMG^([0-9][0-9][0-9])$123
MALAWIMW^.+$*
MALAYSIAMY^([0-9][0-9][0-9][0-9][0-9])$12345
MALDIVESMV^([0-9][0-9][-][0-9][0-9])$12-34
MALIML^.+$*
MALTAMT^([a-zA-Z][a-zA-Z][a-zA-Z][ ]?[0-9][0-9])$abc 12
MARSHALL ISLANDSMH^([0-9][0-9][0-9][0-9][0-9])$12345
MARTINIQUEMQ^([0-9][0-9][0-9][0-9][0-9])$12345
MAURITANIAMR^.+$*
MAURITIUSMU^.+$*
MAYOTTEYT^.+$*
MEXICOMX^([0-9][0-9][0-9][0-9][0-9])$12345
MICRONESIA, FEDERATED STATES OFFM^([0-9][0-9][0-9][0-9][0-9])$12345
MOLDOVA, REPUBLIC OFMD^([0-9][0-9][0-9][0-9])$1234
MONACOMC^([0-9][0-9][0-9][0-9][0-9])$12345
MONGOLIAMN^([0-9][0-9][0-9][0-9][0-9][0-9])$123456
MONTENEGROME^([0-9][0-9][0-9][0-9][0-9])$12345
MONTSERRATMS^.+$*
MOROCCOMA^([0-9][0-9][0-9][0-9][0-9])$12345
MOZAMBIQUEMZ^([0-9][0-9][0-9][0-9][0-9])$12345
MYANMARMM^([0-9][0-9][0-9][0-9][0-9])$12345
NAMIBIANA^.+$*
NAURUNR^.+$*
NEPALNP^([0-9][0-9][0-9][0-9][0-9])$12345
NETHERLANDSNL^([1-9][0-9]{3}\s?[a-zA-Z]{2})$|(^([0-9][0-9][0-9][0-9]))1234 AB, 1234
NETHERLANDS ANTILLESAN^([0-9][0-9][0-9][0-9][a-zA-Z][a-zA-Z])$1234ab
NEW CALEDONIANC^.+$*
NEW ZEALANDNZ^([0-9][0-9][0-9][0-9])$1234
NICARAGUANI^([0-9][0-9][0-9][-][0-9][0-9][0-9][-][0-9])$123-456-7
NIGERNE^([0-9][0-9][0-9][0-9])$1234
NIGERIANG^([0-9][0-9][0-9][0-9][0-9][0-9])$123456
NIUENU^.+$*
NORFOLK ISLANDNF^.+$*
NORTHERN MARIANA ISLANDSMP^.+$*
NORWAYNO^([0-9][0-9][0-9][0-9])$1234
OMANOM^([0-9][0-9][0-9])$123
PAKISTANPK^([0-9][0-9][0-9][0-9][0-9])$12345
PALAUPW^([0-9][0-9][0-9][0-9][0-9])$12345
PALESTINIAN TERRITORY, OCCUPIEDPS^.+$*
PANAMAPA^.+$*
PAPUA NEW GUINEAPG^([0-9][0-9][0-9])$123
PARAGUAYPY^([0-9][0-9][0-9][0-9])$1234
PERUPE^([0-9][0-9][0-9][0-9])$1234
PHILIPPINESPH^([0-9][0-9][0-9][0-9])$1234
PITCAIRNPN^.+$*
POLANDPL(^([0-9][0-9][0-9][0-9][0-9])$)|(^([0-9][0-9][-][0-9][0-9][0-9])$)12345, 12-345
PORTUGALPT^([0-9][0-9][0-9][0-9][0-9][0-9][0-9])$1234567
PUERTO RICOPR^([0-9][0-9][0-9][0-9][0-9])$12345
QATARQA^.+$*
REUNIONRE^([0-9][0-9][0-9][0-9][0-9])$12345
ROMANIARO^([0-9][0-9][0-9][0-9][0-9][0-9])$123456
RUSSIAN FEDERATIONRU^([0-9][0-9][0-9][0-9][0-9][0-9])$123456
RWANDARW^.+$*
SAINT HELENASH^.+$*
SAINT KITTS AND NEVISKN^.+$*
SAINT LUCIALC^.+$*
SAINT PIERRE AND MIQUELONPM^.+$*
SAINT VINCENT AND THE GRENADINESVC^.+$*
SAMOAWS^.+$*
SAN MARINOSM^([0-9][0-9][0-9][0-9][0-9])$12345
SAO TOME AND PRINCIPEST^.+$*
SAUDI ARABIASA^([0-9][0-9][0-9][0-9][0-9])$12345
SENEGALSN^.+$*
SERBIARS^([0-9][0-9][0-9][0-9][0-9])$12345
SEYCHELLESSC^.+$*
SIERRA LEONESL^.+$*
SINGAPORESG^([0-9][0-9][0-9][0-9][0-9][0-9])$123456
SLOVAKIASK^([0-9][0-9][0-9][0-9][0-9])$12345
SLOVENIASI^([0-9][0-9][0-9][0-9])$1234
SOLOMON ISLANDSSB^.+$*
SOMALIASO^.+$*
SOUTH AFRICAZA^([0-9][0-9][0-9][0-9])$1234
SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDSGS^.+$*
SPAINES^([0-9][0-9][0-9][0-9][0-9])$12345
SRI LANKALK^([0-9][0-9][0-9][0-9][0-9])$12345
SUDANSD^([0-9][0-9][0-9][0-9])$1234
SURINAMESR^.+$*
SVALBARD AND JAN MAYENSJ^.+$*
SWAZILANDSZ^([a-zA-Z][0-9][0-9][0-9][0-9])$a123
SWEDENSE^([0-9][0-9][0-9][0-9][0-9])$12345
SWITZERLANDCH^([0-9][0-9][0-9][0-9])$1234
SYRIAN ARAB REPUBLICSY^.+$*
TAIWANTW^([0-9][0-9][0-9][0-9][0-9])$12345
TAJIKISTANTJ^([0-9][0-9][0-9][0-9][0-9][0-9])$123456
TANZANIA, UNITED REPUBLIC OFTZ^.+$*
THAILANDTH^([0-9][0-9][0-9][0-9][0-9])$12345
TOGOTG^.+$*
TOKELAUTK^.+$*
TONGATO^.+$*
TRINIDAD AND TOBAGOTT^.+$*
TUNISIATN^([0-9][0-9][0-9][0-9])$1234
TURKEYTR^([0-9][0-9][0-9][0-9][0-9])$12345
TURKMENISTANTM^([0-9][0-9][0-9][0-9][0-9][0-9])$123456
TURKS AND CAICOS ISLANDSTC^.+$*
TUVALUTV^.+$*
UGANDAUG^.+$*
UKRAINEUA^([0-9][0-9][0-9][0-9][0-9])$12345
UNITED ARAB EMIRATESAE^.+$*
UNITED KINGDOMGB(^([a-zA-Z][0-9][ ][0-9][a-zA-Z][a-zA-Z])$)|(^([a-zA-Z][0-9][a-zA-Z][ ][0-9][a-zA-Z][a-zA-Z])$)|(^([a-zA-Z][0-9][0-9][ ][0-9][a-zA-Z][a-zA-Z])$)|(^([a-zA-Z][a-zA-Z][0-9][ ][0-9][a-zA-Z][a-zA-Z])$)|(^([a-zA-Z][a-zA-Z][a-zA-Z][ ][0-9][a-zA-Z][a-zA-Z])$)|(^([a-zA-Z][a-zA-Z][0-9][0-9][ ][0-9][a-zA-Z][a-zA-Z])$)|(^([a-zA-Z][a-zA-Z][0-9][a-zA-Z][ ][0-9][a-zA-Z][a-zA-Z])$)|(^([a-zA-Z][a-zA-Z][a-zA-Z][ ][0-9][a-zA-Z][a-zA-Z])$)A1 1AB, A1B 1AB, A12 1AB, AB1 1AB, ABC 1AB, AB12 1AB, ABC 1AB
UNITED STATESUS^([0-9][0-9][0-9][0-9][0-9])$12345
UNITED STATES MINOR OUTLYING ISLANDSUM^.+$*
URUGUAYUY^([0-9][0-9][0-9][0-9][0-9])$12345
UZBEKISTANUZ^([0-9][0-9][0-9][0-9][0-9][0-9])$123456
WALLIS AND FUTUNAWF^.+$*
VANUATUVU^.+$*
VENEZUELAVE(^([0-9][0-9][0-9][0-9])$)|(^([0-9][0-9][0-9][0-9][a-zA-Z])$)1234 | 1234a
WESTERN SAHARAEH^.+$*
VIET NAMVN^([0-9][0-9][0-9][0-9][0-9])$12345
VIRGIN ISLANDS, BRITISHVG^.+$*
VIRGIN ISLANDS, U.S.VI^([0-9][0-9][0-9][0-9][0-9])$12345
YEMENYE^.+$*
YUGOSLAVIAYU^([0-9][0-9][0-9][0-9][0-9])$12345
ZAMBIAZM^([0-9][0-9][0-9][0-9][0-9])$12345
ZIMBABWEZW^.+$*