How do you format a 10 digit string into a phone number?

DjYos23

New Member
I have database records in the form of 10 character long strings, such as 4085551234. I wish to format these into this format: (408) 555-1234.I think this is regex related. I'm new to programming and completely self-taught here, so any sort of resource relating to performing text processing would be appreciated as well. Thanks!
 
Back
Top