Sri Lankan national identity card number (NIC)
ID lk_nic
DatatypePersonal data (PII)identifierDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Number of the Sri Lankan national identity card. Cards issued before 1 January 2016 have nine digits and a letter: the two-digit birth year, the day of the year of birth (500 is added for women), a three-digit serial number, a check digit and V or X, which tells whether the holder may vote. Newer cards have twelve digits: the four-digit birth year, the day of the year (plus 500 for women), a four-digit serial number and a check digit. The check digit algorithm is not published.
- Categories
- Personally identifiable information, Person related
- Countries
- Sri Lanka
- Languages
- Sinhala, Tamil
- W3C DPV
pd:OfficialID- Quality
- 95/100 · missing: translation
- Metacrafter rules
- no detection rule yet
- Supported by tools
- validator.js
Regular expression
^(?:[0-9]{2}(?:[0-3][0-9]{2}|[5-8][0-9]{2})[0-9]{4}[VvXx]|(?:19|20)[0-9]{2}(?:[0-3][0-9]{2}|[5-8][0-9]{2})[0-9]{5})$
Python re syntax.
Examples
| Value | Description |
|---|---|
| 911042754V | Old format, from the format description in Wikipedia |
| 197419202757 | New format, example from Wikipedia |
| 91104275V invalid | Old format with eight digits |
Sources
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/lk_nic - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/LK/persons/lk_nic.yamlon GitHub