Validate a Singapore NRIC or FIN number by checking its format and checksum.
A Singapore NRIC (National Registration Identity Card) number consists of 9 characters: a prefix letter, 7 digits, and a checksum letter at the end. The prefix identifies the holder's type and birth era. The checksum letter is calculated using a specific algorithm to detect transcription errors.
| Prefix | Meaning |
|---|---|
| S | Singapore Citizen or PR born before 2000 |
| T | Singapore Citizen or PR born in 2000 or after |
| F | Foreigner (FIN) issued before 2000 |
| G | Foreigner (FIN) issued in 2000 or after |
| M | Foreigner (FIN) — new series from 2022 |