Method to get only phone number without country code?
See original GitHub issueThis plugin is great, but the only thing I find that is missing is being able to easily just grab the phone number without the country code (in my case I want to store the values separately).
I know that the getSelectedCountryData
method can give me the country code so I can use regex to find out the rest, but it would be a lot easier if the plugin exposed a method to do that.
Issue Analytics
- State:
- Created 9 years ago
- Comments:20 (8 by maintainers)
Top Results From Across the Web
How to get phone contact without country code?
I'd suggest to use libphonenumber to parse the phone numbers easily. You can split the country code and phone number in this way....
Read more >How to enter a phone number in international format - Quora
When adding international phone numbers, type the + sign, then the country code followed by the local number.
Read more >4.3. Validate International Phone Numbers - O'Reilly
You want to validate international phone numbers. The numbers should start with a plus sign, followed by the country code and national number....
Read more >International Calling Tip Sheet
When calling from a landline, dial 011 then the country code for Mexico, which is 52, and then the 10-digit phone number including...
Read more >Edit phone number - Microsoft Support
When adding international phone numbers, type the + sign, then the country code followed by the local number. See the examples below, or...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think using JS will gives you phone number without +91
Ohh yes, perfectly works fine with that.
Thanks a lot @jackocnr