If we want to ignore the country code while selecting phone number of each country how we will do for all countries together
Kindly share more context like from where you want to select the phone number.
Is it a web app, pdf, etc.
Need to select from web
Use a regex to remove country codes dynamically for all countries.
System.Text.RegularExpression.Regex.Replace(inputString,"^\+?\d{1,3}[\s-]?","").ToString.Trim
Input: +91 9876543210 → Output: 9876543210
Input: +1-5551234567 → Output: 5551234567
This works for all countries without maintaining a country list.
Regards
Gokul