Created
February 21, 2022 10:44
-
-
Save Mahabali/144e26396abddb64a491a86f578b557d to your computer and use it in GitHub Desktop.
Regex Pattern Matching for Indian Phone Numbers
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{0,2})91(\s*[\ -]\s*)?|[0]?)?[6789]\d{9}|(?:\+)(\d[ -]?){10,12}\d$ | |
//Works for below number formats | |
//+91 1800 102 4455 | |
//+91 77238 39007 | |
//+91 124-5174055 | |
//07723839007 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment