This function validates an European VAT number by checking the length of the string and whether it begins with two capital letters and is followed by 12 digits

vat_parse(x)

Arguments

x

the VAT number

Value

a list with slots for the segments

Examples

if (FALSE) {
if(interactive()){
 vat_parse("SE202100305401")
 }
}