piighost/kr-rrn
South Korean resident registration number: a six digit birth date, a dash, then a digit saying the century and the sex followed by six more. The date is validated and the first digit after the dash is restricted to one through four, which is what keeps it apart from any other thirteen digit sequence.
Label: KR_RRN
Pattern (?<!\w)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])-[1-4]\d{6}(?!\w)
Must be caught The form lists 900101-1234567 as the identifier. → 900101-1234567She registered under 851230-2345678 last year. → 851230-2345678
Must be left alone The code 901301-1234567 has no such monthReference 900101-5234567
Tags: kr, government-id, identity
Download the detector as TOML
Used by
piighost/kr — South Korea: mobile phone and the resident registration 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/kr-phone · All patterns in the catalogue · piighost/logs →