KE_REGEXP_0267

From CDQ Wiki
DataModel:CDQ/Business Partner/Address/Country/KE/REGEXP 0267
Jump to navigation Jump to search
Property Value
A technical identifier, unique in a certain context. Technical key REGEXP_0267
The country a linked concept is active or generally relevant for. Country scope KE (Kenya)
Informal and comprehensive human-readable definition of a concept. Description Specifies the allowed formats for the Personal Identification Number (Kenya).
  • ^ and $ specify the start and end of the string, ensuring that the entire string matches the regex.
  • ([A-Z][A-Z]\d{6}[A-Z]): This part matches PINs for individuals. It starts and ends with uppercase alphabetic characters and has six digits in between.
    • [A-Z] matches any single uppercase alphabetic character.
    • \d{6} matches exactly six digits.
    • [A-Z] matches one uppercase alphabetic character (the check digit).
  • ([C,P][A-Z]\d{6}[A-Z]): This part matches PINs for businesses. It starts with either C or P, followed by an uppercase alphabetic character, and ends with an uppercase alphabetic character after six digits.
    • [C,P] matches either C or P (or any other letters you want to add that could represent the legal entity type).
    • [A-Z] matches any single uppercase alphabetic character (first letter of the business name).
    • \d{6} matches exactly six digits.
    • [A-Z] matches one uppercase alphabetic character (the check digit).
The type in terms of a categorization of regular expressions. Regular expression type IDENTIFIER_FORMAT
A concept managed by another concept, e.g., an identifer managed by a registration authority. Manages KE_PIN (Personal Identification Number)
Regular expression
 (^[A-Z][A-Z]\d{6}[A-Z]$)|(^[C,P][A-Z]\d{6}[A-Z]$)
Exemplary matches

No examples provided.