6
I have a problem, in an app I’m picking up the contacts from the phone book, but I want to do a treatment on the numbers of the contacts that can come like this:
(99) 9999-9999
9999-9999
9999 9999
and among other things, the only treatment I did was to use a SubString
to cut and take only the last 8 characters of the number (to take operator etc), now how do I remove characters other than numbers of these string? In the example above all numbers would look like this: 99999999
Just for the record, there are nine-digit numbers too, in some regions. Soon, picking up the last 8 characters may not be the best option depending on the use of your app.
– Olimon F.
Here I got the 8 digits because the app is for Windows Phone (which has no tool that puts 9 digit) and I’m treating it later.
– Leonardo