SAP Knowledge Base Article - Public

2967115 - EC: Regular expression for Myanmar National ID

Symptom

  • How to write regular expression for supported formats of Myanmar National ID: NN/AAA(AAAAA)NNNNNN or NN/AAAAAA(AAAAA)NNNNNN
  • Allow employee to select from multiple formats of Myanmar National ID

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

SAP SuccessFactors Employee Central

Resolution

Here are the regular expressions:

  • [\d]{2}\/[A-Z]{3}\([A-Z]{5}\)[\d]{6} - This corresponds to NN/AAA(AAAAA)NNNNNN
    • Example: 12/OKM(NAING)123456
  • [\d]{2}\/[A-Z]{6}\([A-Z]{5}\)[\d]{6} - This corresponds to NN/AAAAAA(AAAAA)NNNNNN
    • Example: 12/OUKAMA(NAING)123456

Please note: If you want to allow multiple formats then you can keep the display format blank and regular expression as

[\d]{2}\/[A-Z]{3}\([A-Z]{5}\)[\d]{6}|[\d]{2}\/[A-Z]{6}\([A-Z]{5}\)[\d]{6}

Keywords

Myanmar, country specific national id, Myanmar national id, regular expression Myanmar, NN/AAA(AAAAA)NNNNNN, NN/AAAAAA(AAAAA)NNNNNN , KBA , LOD-SF-EC-PER-NAT , National ID - Config, Rules, RBP, UI , How To

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Core all versions