i have a list of phone numbers and i want to just display the exchange ie if (555) 412-5555 is the number i just want to display 412. how do i trim off teh first 6 charcters and the last 5
Although some what more challenging to set up, a lot safer method would be to strip all the non numeric chars from the string, check the length of the string to assure that there are JUST the 10 in the US and then pick out the subset.
You may find instances where there are only seven chars (indicating no area code) or a variable number of others.
This last bit can easily be daunting, as the "extras" might easily be a country code or -just as easily- an extension. No advice currently available from me to differentiate between these, and I'm reasonable sure from your previous responses that you are not into that anyway.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.