piighost/se-personnummer
Swedish personal identity number: a birth date, then a dash, or a plus sign when the holder is over a hundred, then four digits. The separator is mandatory and the date is validated, which together keep it apart from any other run of digits.
Label: SE_PERSONNUMMER
Pattern (?<!\w)(?:\d{2})?\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[-+]\d{4}(?!\w)
Must be caught The record shows 900101-1234 for that patient. → 900101-1234He is listed as 19900101-1234 in the old system. → 19900101-1234
Must be left alone The code 901301-1234 has no such monthReference 9001011234
Tags: se, government-id, identity
Download the detector as TOML
Used by
piighost/se — Sweden: phone and the personal identity number.
Related patterns
piighost/ar-dni — Argentine national identity document number, the DNI: eight digits, written solid or with a period after the second…
piighost/at-svnr — Austrian social security number, the Sozialversicherungsnummer: ten digits, a three digit serial and one check digit,…
piighost/au-driving-licence — Australian driver licence number.
piighost/au-medicare — Australian Medicare number: ten digits in the groups the card prints, sometimes followed by the individual reference…
piighost/au-passport — Australian passport number, eight or nine characters, per the Purview Australia passport definition: one letter from…
piighost/be-nrn — Belgian national register number in its written form: the birth date in dotted pairs, a dash, a three digit sequence…
← piighost/se-default · All patterns in the catalogue · piighost/se-phone →