title: How do you format a 10 digit string into a phone number?
body: <p>I have database records in the form of 10 character long strings, such as 4085551234. </p>
  
  <p>I wish to format these into this format: (408) 555-1234.</p>
  
  <p>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!</p>