public static string FormatPhoneNumber(string phoneNumber)
{
phoneNumber = Regex.Replace(phoneNumber, "[^0-9+]", "");
if (phoneNumber == "+")
{
phoneNumber = string.Empty;
}
return phoneNumber;
}
No comments:
Post a Comment