Selecting contact without country code

If we want to ignore the country code while selecting phone number of each country how we will do for all countries together

@komal_deshmukh1

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

Hi @komal_deshmukh1

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 9876543210Output: 9876543210
Input: +1-5551234567Output: 5551234567

This works for all countries without maintaining a country list.

Regards
Gokul