Skip to content

Instantly share code, notes, and snippets.

@code2be
Created December 31, 2019 16:28
Show Gist options
  • Save code2be/0a466ed5e98da39912e8f67822d06955 to your computer and use it in GitHub Desktop.
Save code2be/0a466ed5e98da39912e8f67822d06955 to your computer and use it in GitHub Desktop.
JS Regexp for mobile numbers in Egypt
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