Created
December 31, 2019 16:28
-
-
Save code2be/0a466ed5e98da39912e8f67822d06955 to your computer and use it in GitHub Desktop.
JS Regexp for mobile numbers in Egypt
This file contains 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
var validate_egypt_mobile = (mobileStr) => { | |
return /^(010|012|011|015)[0-9]{8}$/.test(mobileStr); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment