Title |
Test
Find
Pattern Title
|
Expression |
((DK|FI|HU|LU|MT|SI)(-)?\d{8})|((BE|EE|DE|EL|LT|PT)(-)?\d{9})|((PL|SK)(-)?\d{10})|((IT|LV)(-)?\d{11})|((LT|SE)(-)?\d{12})|(AT(-)?U\d{8})|(CY(-)?\d{8}[A-Z])|(CZ(-)?\d{8,10})|(FR(-)?[\dA-HJ-NP-Z]{2}\d{9})|(IE(-)?\d[A-Z\d]\d{5}[A-Z])|(NL(-)?\d{9}B\d{2})|(ES(-)?[A-Z\d]\d{7}[A-Z\d]) |
Description |
Matches valid VAT identification number for all current EU's member states, in format CC-xxx or CCxxx (where CC is country code and xxx actual VAT number). |
Matches |
CZ-7907111883 | ESA12345678 | FRAB123456789 |
Non-Matches |
CZ55912 | XY123456 | FR-IB123456789 |
Author |
Rating:
Michal Valasek
|
Source |
|
Your Rating |
|
Title: Reg Exp
Name: Jonathan Lee
Date: 6/13/2007 7:32:44 AM
Comment:
I can't get this to work at all where as the other VAT expressions work without a problem.
Title: UK Validation
Name: Guido Ludwig
Date: 10/19/2006 3:39:31 AM
Comment:
UK Numbers : (found somewhere else here on regexlib) :
^([GB])*(([1-9]\\d{8})|([1-9]\\d{11}))$
Title: BE Validation change
Name: Guido Ludwig
Date: 10/19/2006 3:38:03 AM
Comment:
as per 2005-04-01 belgium VAT numbers have 10 digits. the old 9 digit number will be valid until 2007-12-31, but are also valid using a leading '0'
Title: What about UK?
Name: Chris
Date: 4/11/2005 7:12:43 AM
Comment:
Nice one, but I think you're missing the GB one...