Datatypes › Hong Kong › Personally identifiable information
Hong Kong identity card number (HKID)
ID hk_hkid
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 Hong Kong identity card: one or two letters, six digits and a check character (a digit or A), which is often written in parentheses.
- Categories
- Personally identifiable information, Person related
- Countries
- Hong Kong
- Languages
- Chinese, English
- W3C DPV
pd:OfficialID- Microsoft Purview
Hong Kong identity card (HKID) number- Quality
- 75/100 · missing: examples, negative example, translation
- Metacrafter rules
- no detection rule yet
- Supported by tools
- AWS Glue Sensitive Data Detection, Azure AI Language PII detection, Cloudflare DLP, Databricks Unity Catalog data classification, Microsoft Purview Data Loss Prevention, Nightfall AI, validator.js
Regular expression
^[A-Z]{1,2}\d{6} ?(?:[0-9A]|\([0-9A]\))$
Python re syntax.
Test a value
Sources
- doc: learn.microsoft.com/en-us/purview/sit-defn-hong-kong-identity-card-number
- wikipedia: Hong Kong identity card (en.wikipedia.org)
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/hk_hkid - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/HK/persons/hk_hkid.yamlon GitHub