“VAT number” is one of the patterns that you can select on the Match panel. Use it to make a field match a value added tax number from one or more European countries.
This example shows how you can use the “VAT number” pattern to check for VAT numbers from the Benelux countries. You can find this example as “Pattern: VAT number” in the RegexMagic library.
ATU12345678 BE123456789 BE0123456789 BG123456789 BG0123456789 CY12345678L CZ12345678 CZ123456789 CZ1234567890 DE123456789 DK12345678 EE123456789 GR123456789 EL123456789 ES012345678 ESX1234567Y FI12345678 FR12123456789 FRAB123456789 GB123456789123 GB123456789AB1 HU12345678 IE1S12345L IT12345678901 LU12345678 LT123456789 LT123456789012 LV12345678901 MT12345678 NL123456789B01 PL1234567890 PT123456789 RO12345678 RO123456789 RO1234567890 SE123456789012 SI12345678 SK1234567890
\b(?:LU[0-9]{8}|BE[0-1][0-9]{9}|NL[0-9]{9}B[0-9]{2})\b
Required options: Case insensitive.
Unused options: Exact spacing; Dot doesn’t match line breaks; ^$ don’t match at line breaks; Numbered capture.
ATU12345678 BE123456789 BE0123456789 BG123456789 BG0123456789 CY12345678L CZ12345678 CZ123456789 CZ1234567890 DE123456789 DK12345678 EE123456789 GR123456789 EL123456789 ES012345678 ESX1234567Y FI12345678 FR12123456789 FRAB123456789 GB123456789123 GB123456789AB1 HU12345678 IE1S12345L IT12345678901 LU12345678 LT123456789 LT123456789012 LV12345678901 MT12345678 NL123456789B01 PL1234567890 PT123456789 RO12345678 RO123456789 RO1234567890 SE123456789012 SI12345678 SK1234567890