• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

using MID to extract ( ) and area codes

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I'm new to this forum and would like to know how to remove the ( ) and area code from phone numbers and place them in a different. I have a list of about 1000 with phone numbers from all over the US. This list phone number column migh look something like this: (503)546-0998...(601) 630-4568...(704)567-0024,etc.). I can't seem to ge the MID function to remove the entries at all. Please help.

Thanks
Mae
 
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is the "mid" function?

if your phone numbers are stored in strings, then you might want to look up the String class in the API documentation; there are some methods you might find useful in it. for example, indexOf() and substring() might come in handy.
reply
    Bookmark Topic Watch Topic
  • New Topic