Regular expressions for registant data[Link]

DNS Belgium will use the following regular expressions to validate registrant data.

The table can be downloaded in csv or json format from the DNS Belgium github repo.

VAT numbers[Link]

  • VAT is mandatory for organisations in EU/EAA. It is allowed to use ‘PENDING’ for VAT if applicable

  • Contacts with VAT value PENDING will be checked after 3 months. If there is no valid VAT number, they will receive a warning and may be subjected to the Revoke procedure

  • If entered, VAT must be the correct syntax for the countrycode of the registrant (see table below)

Postal codes and phone numbers[Link]

  • Postal code must have the correct syntax for the countrycode of the registrant. For a country without postal codes, we allow ‘0000’ or ‘00000’

  • Length of phone number must be correct for the phone prefix

These are the regular expressions used:

Country codeNamePostalcode regular expressionPhone prefixPhone lengthVAT regular expression
ADAndorra^[Aa][Dd][0-9]{3}$376^([0-9]{6}|[0-9]{8,9})$
AEUnited Arab Emirates^[0]{4,5}$971^[0-9]{8,9}$
AFAfghanistan^[0-9]{6}$93^[0-9]{9}$
AGAntigua and Barbuda^[0]{4,5}$1^[0-9]{10}$
AIAnguilla^[Aa][I][-][2][6][4][0]$1^[0-9]{10}$
ALAlbania^[0-9]{4}$355^[0-9]{3,9}$
AMArmenia^[0-9]{4}$374^[0-9]{8}$
ANNetherlands Antilles^[0]{4,5}$599^[0-9]{7,8}$
AOAngola^[0]{4,5}$244^[0-9]{9}$
AQAntarctica^[0]{4,5}$|^BIQQ 1ZZ$672^[0-9]{6}$
ARArgentina^[0-9]{4}|[A-Za-z][0-9]{4}[a-zA-Z]{3}$54^[0-9]{10}$
ASAmerican Samoa^[0-9]{5}$1^[0-9]{10}$
ATAustria^[0-9]{4}$43^[0-9]{4,13}$^(AT)?U[0-9]{8}$
AUAustralia^[0-9]{4}$61^[0-9]{5,15}$
AWAruba^[0]{4,5}$297^[0-9]{7}$
AXÅland Islands^[0-9]{5}$358^[0-9]{5,12}$^(FI)?[0-9]{8}$
AZAzerbaijan^[Aa][Zz][0-9]{4}$994^[0-9]{8,9}$
BABosnia and Herzegovina^[0-9]{5}$387^[0-9]{8}$
BBBarbados^[Bb][Bb][0-9]{5}$1^[0-9]{10}$
BDBangladesh^[0-9]{4}$880^[0-9]{6,10}$
BEBelgium^[0-9]{4}$32^[0-9]{8,9}$^(BE)?[0,1]{1}[0-9]{9}$
BFBurkina Faso^([0]{4}|[0-9]{2})$226^[0-9]{8}$
BGBulgaria^[0-9]{4}$359^[0-9]{7,9}$^(BG)?[0-9]{9,10}$
BHBahrain^[0-9]{3,4}$973^[0-9]{8}$
BIBurundi^[0]{4,5}$257^[0-9]{8}$
BJBenin^([0]{4}|[0-9]{2})$229^[0-9]{8}$
BLSaint Barthélemy^97133$590^[0-9]{9}$
BMBermuda^[A-Za-z]{2}\s([A-Za-z]{2}|[0-9]{2})$1^[0-9]{10}$
BNBrunei Darussalam^[A-Za-z]{2}[0-9]{4}$673^[0-9]{7}$
BOBolivia^[0]{4,5}$591^[0-9]{8}$
BQBonaire, Sint Eustatius and Saba^[0]{4,5}$599^[0-9]{7,8}$
BRBrazil^[0-9]{5}-[0-9]{3}$55^[0-9]{10}$
BSBahamas^[0]{4,5}$1^[0-9]{10}$
BTBhutan^[0-9]{5}$975^[0-9]{7,8}$
BVBouvet Island^[0]{4,5}$47^([0-9]{5}|[0-9]{8})$
BWBotswana^[0]{4,5}$267^[0-9]{7,8}$
BYBelarus^[0-9]{6}$375^[0-9]{9,10}$
BZBelize^[0]{4,5}$501^[0-9]{7}$
CACanada^[ABCEGHJKLMNPRSTVWXY][0-9][ABCEGHJKLMNPRSTVWXYZ]\s[0-9][ABCEGHJKLMNPRSTVWXYZ][0-9]$1^[0-9]{10}$
CCCocos (Keeling) Islands^[0-9]{4}$61^[0-9]{5,15}$
CDCongo, Democratic Republic^([0-9]{7}|[0]{4})$243^[0-9]{5,9}$
CFCentral African^[0]{4,5}$236^[0-9]{8}$
CGCongo (Brazzaville)^[0]{4,5}$242^[0-9]{9}$
CHSwitzerland^[0-9]{4}$41^[0-9]{4,12}$
CIIvory coast^[0]{4,5}$225^[0-9]{10}$
CKCook Islands^[0]{4,5}$682^[0-9]{5}$
CLChile^[0-9]{3}-[0-9]{4}$56^[0-9]{8,9}$
CMCameroon^[0]{4,5}$237^[0-9]{9}$
CNChina^[0-9]{6}$86^[0-9]{5,12}$
COColombia^[0-9]{6}$57^([0-9]{8}|[0-9]{10})$
CRCosta Rica^[0-9]{4,5}$506^[0-9]{8}$
CUCuba^[0-9]{5}$53^[0-9]{6,8}$
CVCape Verde^[0-9]{4}$238^[0-9]{7}$
CWCuraçao^[0]{4,5}$599^[0-9]{7,8}$
CXChristmas Island^[0-9]{4}$61^[0-9]{5,15}$
CYCyprus^[0-9]{4}$357^([0-9]{8}|[0-9]{11})$^(CY)?[0-9]{8}L$
CZCzech Republic^[0-9]{3}\s[0-9]{2}$420^[0-9]{4,12}$^(CZ)?[0-9]{8,10}$
DEGermany^([0-9]{2})|([0-9]{4})|([0-9]{5})$49^[0-9]{6,13}$^(DE)?[0-9]{9}$
DJDjibouti^[0-9]{5}$253^[0-9]{6}$
DKDenmark^[0-9]{4}$45^[0-9]{8}$^(DK)?[0-9]{8}$
DMDominica^00109-8000$1^[0-9]{10}$
DODominican Republic^[0-9]{5}$1^[0-9]{10}$
DZAlgeria^[0-9]{5}$213^[0-9]{8,9}$
ECEcuador^[0-9]{6}$593^[0-9]{8}$
EEEstonia^[0-9]{5}$372^[0-9]{7,10}$^(EE)?[0-9]{9}$
EGEgypt^[0-9]{7}$20^[0-9]{7,9}$
EHWestern Sahara^[0]{4,5}$212^[0-9]{9}$
EREritrea^[0]{4,5}$291^[0-9]{7}$
ESSpain^[0-9]{5}$34^[0-9]{9}$^(ES)?[0-9A-Z][0-9]{7}[0-9A-Z]$
ETEthiopia^[0-9]{4}$251^[0-9]{9}$
FIFinland^[0-9]{5}$358^[0-9]{5,12}$^(FI)?[0-9]{8}$
FJFiji^[0]{4,5}$679^[0-9]{7}$
FKFalkland Islands^[Ff][Ii][Qq]{2}\s{0,1}[1][Zz]{2}$500^[0-9]{5}$
FMFederated States of Micronesia^([0-9]{5})|([0-9]{5}(-{1}[0-9]{4}))$691^[0-9]{7}$
FOFaroe Islands^[0-9]{3}$298^[0-9]{6}$
FRFrance^[0-9]{5}$33^[0-9]{9}$^(FR)?[0-9A-Z]{2}[0-9]{9}$
GAGabon^[0]{4,5}$241^[0-9]{6,7}$
GBUnited Kingdom^[A-Z]{1,2}[0-9R][0-9A-Z]?\s*[0-9][A-Z-[CIKMOV]]{2}$44^[0-9]{7,10}$^(GB)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})$
GDGrenada^[0]{4,5}$1^[0-9]{10}$
GEGeorgia^[0-9]{4}$995^[0-9]{9}$
GFFrench Guiana^973[0-9]{2}$594^[0-9]{9}$^(FR)?[0-9A-Z]{2}[0-9]{9}$
GGGuernsey^[A-Za-z]{2}[0-9]\s{0,1}[0-9][A-Za-z]{2}$44^[0-9]{7,10}$
GHGhana^[aA-zZ]{2}[0-9]{3}$233^[0-9]{5,9}$
GIGibraltar^[Gg][Xx][1]{2}\s{0,1}[1][Aa]{2}$350^[0-9]{8}$^(GB)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})$
GLGreenland^[0-9]{4}$299^[0-9]{6}$
GMGambia^[0]{4,5}$220^[0-9]{7}$
GNGuinea^[0-9]{3}$224^[0-9]{8}$
GPGuadeloupe^971[0-9]{2}$590^[0-9]{9}$^(FR)?[0-9A-Z]{2}[0-9]{9}$
GQEquatorial Guinea^[0]{4,5}$240^[0-9]{9}$
GRGreece^[0-9]{3}\s{0,1}[0-9]{2}$30^[0-9]{10}$^(EL|GR)?[0-9]{9}$
GSSouth Georgia and the South Sandwich Islands^[Ss][Ii][Qq]{2}\s{0,1}[1][Zz]{2}$995^[0-9]{9}$
GTGuatemala^[0-9]{5}$502^[0-9]{8}$
GUGuam^[0-9]{5}$1^[0-9]{10}$
GWGuinea-Bissau^[0-9]{4}$245^[0-9]{7}$
GYGuyana^[0]{4,5}$592^[0-9]{7}$
HKHong Kong^[0]{4,5}$852^([0-9]{4}|[0-9]{8,9})$
HMHeard Island and McDonald Islands^[0-9]{4}$672^[0-9]{6}$
HNHonduras^[0-9]{5}$|^[A-Za-z]{2}[0-9]{5}$|^[0]{4,5}$504^[0-9]{8}$
HRCroatia^[0-9]{5}$385^[0-9]{8,12}$^(HR)?[0-9]{11}$
HTHaiti^[0-9]{4}$509^[0-9]{8}$
HUHungary^[0-9]{4}$36^[0-9]{8,9}$^(HU)?[0-9]{8}$
IDIndonesia^[0-9]{5}$62^[0-9]{5,10}$
IEIreland^[aA-zZ0-9]{7}$353^[0-9]{7,11}$^(IE)?[0-9]S[0-9]{5}L$
ILIsrael^[0-9]{5}([0-9]{2})?$972^[0-9]{8,9}$
IMIsle of Man^[Ii][Mm][0-9]{1,2}\s[0-9][A-Z]{2}$44^[0-9]{7,10}$
INIndia^[0-9]{6}$91^[0-9]{7,10}$
IOBritish Indian Ocean Territory^[Bb]{2}[Nn][Dd]\s{0,1}[1][Zz]{2}$246^[0-9]{7}$
IQIraq^[0-9]{5}$964^[0-9]{8,10}$
IRIslamic Republic of Iran^[0-9]{10}$98^[0-9]{6,10}$
ISIceland^[0-9]{3}$354^([0-9]{7}|[0-9]{9})$^[0-9a-zA-Z]{5,6}$
ITItaly^[0-9]{5}$39^[0-9]{1,11}$^(IT)?[0-9]{11}$
JEJersey^[Jj][Ee][0-9]\s{0,1}[0-9][A-Za-z]{2}$44^[0-9]{7,10}$
JMJamaica^[0-9]{2}$|^[0]{4,5}$1^[0-9]{10}$
JOJordan^[0-9]{5}$962^[0-9]{5,9}$
JPJapan^[0-9]{3}-[0-9]{4}$81^[0-9]{5,13}$
KEKenya^[0-9]{5}$254^[0-9]{6,10}$
KGKyrgyzstan^[0-9]{6}$996^[0-9]{9}$
KHCambodia^[0-9]{6}$855^[0-9]{8}$
KIKiribati^[Kk][Ii][0-9]{4}$686^[0-9]{5}$
KMComoros^[0]{4,5}$269^[0-9]{7}$
KNSaint Kitts and Nevis^[Kk][Nn][0-9]{4}$1^[0-9]{10}$
KPDemocratic People's Republic of Korea^[0]{4,5}$850^[0-9]{6,17}$
KRRepublic of Korea^[0-9]{5}$82^[0-9]{8,11}$
KWKuwait^[0-9]{5}$965^([0-9]{7}|[0-9]{8})$
KYCayman Islands^[Kk][Yy][0-9][-\s]{0,1}[0-9]{4}$1^[0-9]{10}$
KZKazakhstan^[0-9]{6}$7^[0-9]{10}$
LALao People's Democratic Republic^[0-9]{5}$856^[0-9]{8,10}$
LBLebanon^[0]{4,5}$961^[0-9]{7,8}$
LCSaint Lucia^[Ll][Cc]([0-9]\s?){5}$1^[0-9]{10}$
LILiechtenstein^[0-9]{4}$423^[0-9]{7,9}$^[0-9]{5}$
LKSri Lanka^[0-9]{5}$94^[0-9]{9}$
LRLiberia^[0-9]{4}$231^[0-9]{7,8}$
LSLesotho^[0-9]{3}$266^[0-9]{8}$
LTLithuania^[Ll][Tt][- ]{0,1}[0-9]{5}$370^[0-9]{8}$^(LT)?([0-9]{9}|[0-9]{12})$
LULuxembourg^[0-9]{4}$352^[0-9]{4,11}$^(LU)?[0-9]{8}$
LVLatvia^[Ll][Vv][- ]{0,1}[0-9]{4}$371^[0-9]{7,8}$^(LV)?[0-9]{11}$
LYLibyan Arab Jamahiriya^[0]{4,5}$218^[0-9]{8,9}$
MAMorocco^[0-9]{5}$212^[0-9]{9}$
MCMonaco^980[0-9]{2}$377^[0-9]{5,9}$
MDRepublic of Moldova^[Mm][Dd][- ]{0,1}[0-9]{4}$373^[0-9]{8}$
MEMontenegro^[0-9]{5}$382^[0-9]{4,12}$
MGMadagascar^[0-9]{3}$261^[0-9]{9,10}$
MHMarshall Islands^[0-9]{5}$692^[0-9]{7}$
MKThe Former Yugoslav Republic of Macedonia^[0-9]{4}$389^[0-9]{8}$
MLMali^[0]{4,5}$223^[0-9]{8}$
MMMyanmar^[0-9]{5}$95^[0-9]{7,9}$
MNMongolia^[0-9]{5,7}$976^[0-9]{7,8}$
MOMacao^[0]{4,5}$853^[0-9]{7,8}$
MPNorthern Mariana Islands^[0-9]{5}$1^[0-9]{10}$
MQMartinique^972[0-9]{2}$596^[0-9]{9}$^(FR)?[0-9A-Z]{2}[0-9]{9}$
MRMauritania^[0]{4,5}$222^[0-9]{7}$
MSMontserrat^[Mm][Ss][Rr]\s{0,1}[0-9]{4}$1^[0-9]{10}$
MTMalta^[A-Za-z]{3}\s{0,1}[0-9]{4}$356^[0-9]{8}$^(MT)?[0-9]{8}$
MUMauritius^[0-9]{5}|([aA-zZ]{1}[0-9]{4})$230^[0-9]{7}$
MVMaldives^[0-9]{4,5}$960^[0-9]{7}$
MWMalawi^[0-9]{6}$265^[0-9]{7,8}$
MXMexico^[0-9]{5}$52^[0-9]{10}$
MYMalaysia^[0-9]{5}$60^[0-9]{7,9}$
MZMozambique^[0-9]{4}$258^[0-9]{8,9}$
NANamibia^[0-9]{5}$264^[0-9]{6,10}$
NCNew Caledonia^988[0-9]{2}$687^[0-9]{6}$
NENiger^[0-9]{4}$227^[0-9]{8}$
NFNorfolk Island^[0-9]{4}$672^[0-9]{6}$
NGNigeria^[0-9]{6}$234^[0-9]{7,10}$
NINicaragua^[0-9]{5}$505^[0-9]{8}$
NLNetherlands^[0-9]{4}\s{0,1}[A-Za-z]{2}$31^[0-9]{9}$^(NL)?[0-9]{9}B[0-9]{2}$
NONorway^[0-9]{4}$47^([0-9]{5}|[0-9]{8})$^[0-9]{9}(MVA)?$
NPNepal^[0-9]{5}$977^[0-9]{8,9}$
NRNauru^[Nn][Rr][Uu]68$674^([0-9]{4}|[0-9]{7})$
NUNiue^9974$683^[0-9]{4}$
NZNew Zealand^[0-9]{4}$64^[0-9]{3,10}$
OMOman^[0-9]{3}$968^[0-9]{7,8}$
PAPanama^[0]{4,5}$507^([0-9]{7}|[0-9]{8})$
PEPeru^[0-9]{5}$51^[0-9]{8,11}$
PFFrench Polynesia^987[0-9]{2}$689^[0-9]{6}$
PGPapua New Guinea^[0-9]{3}$675^[0-9]{4,11}$
PHPhilippines^[0-9]{4}$63^[0-9]{8,10}$
PKPakistan^[0-9]{5}$92^[0-9]{8,11}$
PLPoland^[0-9]{2}[- ]{0,1}[0-9]{3}$48^[0-9]{6,9}$^(PL)?[0-9]{10}$
PMSaint-Pierre and Miquelon^97500$508^[0-9]{6}$
PNPitcairn^[Pp][Cc][Rr][Nn]\s{0,1}[1][Zz]{2}$64^[0-9]{3,10}$
PRPuerto Rico^[0-9]{5}$1^[0-9]{10}$
PSOccupied Palestinian Territory^[0]{4,5}$970^[0-9]{9,10}$
PTPortugal^([0-9]{4})|([0-9]{4}[- ]{0,1}[0-9]{3})$351^[0-9]{9,11}$^(PT)?[0-9]{9}$
PWPalau^[0-9]{5}$680^[0-9]{7}$
PYParaguay^[0-9]{4}$595^[0-9]{5,9}$
QAQatar^[0]{4,5}$974^[0-9]{3,8}$
RERéunion^974[0-9]{2}$262^[0-9]{9}$^(FR)?[0-9A-Z]{2}[0-9]{9}$
RORomania^[0-9]{6}$40^[0-9]{9}$^(RO)?[0-9]{2,10}$
RSSerbia^[0-9]{5}$381^[0-9]{4,12}$
RURussian Federation^[0-9]{6}$7^[0-9]{10}$
RWRwanda^[0]{4,5}$250^[0-9]{9}$
SASaudi Arabia^[0-9]{5}(-{1}[0-9]{4})?$966^[0-9]{8,9}$
SBSolomon Islands^[0]{4,5}$677^[0-9]{5}$
SCSeychelles^[0]{4,5}$248^[0-9]{7}$
SDSudan^[0-9]{5}$249^[0-9]{9}$
SESweden^[0-9]{3}\s*[0-9]{2}$46^[0-9]{7,13}$^(SE)?[0-9]{12}$
SGSingapore^([0-9]{2})|([0-9]{4})|([0-9]{6})$65^[0-9]{8,12}$
SHSaint Helena^(STHL|sthl|ASCN|ascn|TDCU|tdcu)\s(1ZZ|1zz)$290^[0-9]{4}$
SISlovenia^([Ss][Ii][- ]{0,1}){0,1}[0-9]{4}$386^[0-9]{8}$^(SI)?[0-9]{8}$
SJSvalbard and Jan Mayen^[0-9]{4}$47^([0-9]{5}|[0-9]{8})$
SKSlovakia^[0-9]{3}\s?[0-9]{2}$421^[0-9]{4,9}$^(SK)?[0-9]{10}$
SLSierra Leone^[0]{4,5}$232^[0-9]{8}$
SMSan Marino^4789[0-9]$378^[0-9]{6,10}$
SNSenegal^[0-9]{5}$221^[0-9]{9}$
SOSomalia^[aA-zZ]{0,2}[0-9]{5}$252^[0-9]{5,8}$
SRSuriname^[0]{4,5}$597^[0-9]{6,7}$
SSRepublic of South Sudan^[0-9]{5}$211^[0-9]{9}$
STSao Tome and Principe^[0]{4,5}$239^[0-9]{7}$
SVEl Salvador^1101$503^([0-9]{7}|[0-9]{8}|[0-9]{11})$
SXSint Maarten^[0]{4,5}$1^[0-9]{10}$
SYSyrian Arab Republic^[0]{4,5}$963^[0-9]{8,10}$
SZSwaziland^[A-Za-z][0-9]{3}$268^[0-9]{7,8}$
TCTurks and Caicos Islands^[Tt][Kk][Cc][Aa]\s{0,1}[1][Zz]{2}$1^[0-9]{10}$
TDChad^[0-9]{5}$235^[0-9]{8}$
TFFrench Southern Territories^[0]{4,5}$33^[0-9]{9}$
TGTogo^[0]{4,5}$228^[0-9]{8}$
THThailand^[0-9]{5}$66^[0-9]{8,9}$
TJTajikistan^[0-9]{6}$992^[0-9]{9}$
TKTokelau^[0]{4,5}$690^[0-9]{4}$
TLTimor-Leste^[0]{4,5}$670^[0-9]{7}$
TMTurkmenistan^[0-9]{6}$993^[0-9]{8}$
TNTunisia^[0-9]{4}$216^[0-9]{8}$
TOTonga^[0]{4,5}$676^([0-9]{5}|[0-9]{7})$
TRTurkey^[0-9]{5}$90^[0-9]{10}$
TTTrinidad and Tobago^[0-9]{6}$1^[0-9]{10}$
TVTuvalu^[0]{4,5}$688^([0-9]{5}|[0-9]{6})$
TWTaiwan^[0-9]{5,6}$886^[0-9]{8,9}$
TZUnited Republic Of Tanzania^[0-9]{5}$255^[0-9]{9}$
UAUkraine^[0-9]{5}$380^[0-9]{9}$
UGUganda^[0]{4,5}$256^[0-9]{9}$
UMUnited States Minor Outlying Islands^[0]{4,5}$246^[0-9]{7}$
USUnited States^[0-9]{5}(?:[- ]{1}[0-9]{4})?$1^[0-9]{10}$
UYUruguay^[0-9]{5}$598^[0-9]{4,11}$
UZUzbekistan^[0-9]{3} [0-9]{3}$998^[0-9]{9}$
VAVatican City State^00120$379^([0-9]{1}|[0-9]{11})$
VCSaint Vincent and the Grenadines^[Vv][Cc][0-9]{4}$1^[0-9]{10}$
VEVenezuela^[0-9]{4}(\s[a-zA-Z]{1})?$58^[0-9]{10}$
VGBritish Virgin Islands^[Vv][Gg][0-9]{4}$1^[0-9]{10}$
VIU.S. Virgin Islands^[0-9]{5}$1^[0-9]{10}$
VNVietnam^[0-9]{6}$84^[0-9]{7,10}$
VUVanuatu^[0]{4,5}$678^([0-9]{5}|[0-9]{7})$
WFWallis and Futuna^986[0-9]{2}$681^[0-9]{6}$
WSSamoa^[Ww][Ss][0-9]{4}$685^[0-9]{3,7}$
XKKosovo^[0]{4,5}$383^[0-9]{8}$
YEYemen^[0]{4,5}$967^[0-9]{6,9}$
YTMayotte^976[0-9]{2}$262^[0-9]{9}$
ZASouth Africa^[0-9]{4}$27^[0-9]{9}$
ZMZambia^[0-9]{5}$260^[0-9]{9}$
ZWZimbabwe^[0]{4,5}$263^[0-9]{5,10}$