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

Must be left alone

Tags: kr, government-id, identity

Download the detector as TOML