Created
January 17, 2016 08:33
-
-
Save hmbilal/773b83cd888f12ee7adc to your computer and use it in GitHub Desktop.
Regular expression to validate 3 phone number formats. The formats are 0551234567, +971557357625, 00971557357625
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
/(^[+][0-9]{11,12})$|^(^0{1}(?![0])[0-9]{9})$|(^0{2}[0-9]{11,12})$/g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment