Regular Expressions 101

Egyptian National ID

Open Workspace
  • JavaScript
  • Match
0

Regular Expression

/
^([2-3]{1})([0-9]{2})(0[1-9]|1[012])(0[1-9]|[1-2][0-9]|3[0-1])(0[1-4]|[1-2][1-9]|3[1-5]|88)[0-9]{3}([0-9]{1})[0-9]{1}$
/

Description

This validates the components of the Egyptian national ID ... See details (Arabic)

Submitted by Mahmoud Mostafa