020227-1

Write an ABNF specification for Swedish social security numbers (personnummer) of the format like 16 12 01-0924, i.e. two digits, space, two digits, space, dash, four digits.

Answer

Personnummer = 2*2DIGIT SPACE 2*2DIGIT SPACE 2*2DIGIT
               DASH 4*4DIGIT

List of exam questions