Displaying page
of
pages;
Items to
Title |
Test
Details
Egyptian National ID
|
Expression |
(?<BirthMillennium>[23])\x20?(?:(?<BirthYear>[0-9]{2})\x20?(?:(?:(?<BirthMonth>0[13578]|1[02])\x20?(?<BirthDay>0[1-9]|[12][0-9]|3[01]))\x20?|(?:(?<BirthMonth>0[469]|11)\x20?(?<BirthDay>0[1-9]|[12][0-9]|30))\x20?|(?:(?<BirthMonth>02)\x20?(?<BirthDay>0[1-9]|1[0-9]|2[0-8]))\x20?)|(?:(?<BirthYear>04|08|[2468][048]|[13579][26]|(?<=3)00)\x20?(?<BirthMonth>02)\x20?(?<BirthDay>29)\x20?))(?<ProvinceCode>0[1-34]|[12][1-9]|3[1-5]|88)\x20?(?<RegistryDigit>[0-9]{3}(?<GenderDigit>[0-9]))\x20?(?<CheckDigit>[0-9])
|
Description |
Matches the Egyptian National ID Number with captured named groups, optional spaces between codes and leap year support. (C# Flavor)
|
Matches |
29502200502853 | 2 95 02 20 05 0285 3 | 3 00 02 29 01 0492 6
|
Non-Matches |
3 01 02 29 01 0492 6 | 3 01 02 29 01 0492 | 3010229010492-6
|
Author |
Rating:
Not yet rated.
Amr Al Sayed
|
Displaying page
of
pages;
Items to