-
-
Save dzinampini/3beac74c91820621136c7e45499fde47 to your computer and use it in GitHub Desktop.
Zimbabwe National ID Regex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 00000000X00 | |
/([0-9]{8,9}[a-z,A-Z][0-9]{2})/g | |
# 00-000000-X-00 dashes are optional | |
/([0-9]{2}-?[0-9]{6,7}-?[a-z,A-Z]-?[0-9]{2})/g | |
# 00-000000 X00 dash is required, space before letter is optional | |
/([0-9]{2}-[0-9]{6,7}\s?[a-z,A-Z][0-9]{2})/g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment