I have a string when a telephone number is inputted - there is a mask so it always looks like \"(123) 456-7890\" - I\'d like to take the formatting out before saving it to the D
Alternative using Linq:
string phoneNumber = "(403) 259-7898"; var phoneStr = new string(phoneNumber.Where(i=> i >= 48 && i <= 57).ToArray());