Validating vat numbers
Prices include all fees and Insurance Premium Tax (IPT). Landlords should check if their existing home insurance or other policies provide cover, expert assistance and repairs in the event of the domestic incidents covered by this policy so you are not paying for cover you do not need. Mobile homes, bedsits, sub-divided homes and sub-let properties are not covered.
The boiler at your property must have a power output of less than 60 KW/hr and be fired by natural gas (and not LPG, electric or oil). Currently customers in their second year are paying £12.02 a month, £144.24 for the year for this policy provided they have made no claims. If you have not claimed you would receive a full refund within the first 28 days. Please see Terms and Conditions for full cancellation information. This policy is underwritten by Aviva Insurance Limited which is authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and the Prudential Regulation Authority.
Normaly I am using regex to validate simple strings - but this looks kind of very complex to me.
Whenver new countries join the European Union, or member countries change their rules for VAT numbers, the regex needs an update.
This lib is basically calling web service provided by VIES (at Vat Service.wsdl) for VAT number validation.
A value added tax identification number or VAT identification number (VATIN) is an identifier used in many countries, including the countries of the European Union, for value added tax purposes.
[0-9] # Slovakia )$ quantifiers after the closing round brackets.
A very lightweight, tiny lib (no external dependencies) allows you to verify the validity of a VAT number issued by any European Union Member State.