antalaron / vat-number-validator

PHP library to validate VAT numbers
MIT License
6 stars 6 forks source link

Belgium format outdated/incorrect #7

Open Vinobe93 opened 1 month ago

Vinobe93 commented 1 month ago

Currently your regex for Belgium checks for BE + optional zero + 9 digits. Belgium has ran out of VAT numbers in the BE0 range since end of year 2022 and has officially been using BE1 + 9 digit range since 1-jan-2023, so for almost two years now.

Your regex does not allow for BE1 range VAT numbers. (and so do many many many other example codes online, but yours is one of the first to pop up)

antalaron commented 1 month ago

hello @Vinobe93

i'm not as involved with vat number validation in a work capacity anymore, but i'd be happy to help if you could send over a few valid vat numbers that i can test with.