Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 582 Bytes

readme.md

File metadata and controls

14 lines (9 loc) · 582 Bytes

Validate Emirates ID

Emirates ID is an identity card issued by Federal Authority for Identity and Citizenship of United Arab Emirates. This script validates Emirates ID format and check digit.

Program Logic

  1. Validate Emirates ID using the regular expression /^784[-]*\d{4}[-]*\d{7}[-]*\d$/
  2. Use Luhn algorithm to calculate check digit and compare

References