title: Splitting a phone number using .split function
body: <p>I have a phone number value being returned from an api and Im trying to split its values into three sections. But the phone number is formatted in a way that is making it hard to understand how to apply the .split function the number is returned like this <code>(AAA) BBB-CCCC </code>.
  The value I am having trouble isolating is the middle three numbers
  for the first one I have this working</p>
  <pre><code>phone.split(&quot; &quot;)[0] //returns AAA
  phone.split(&quot;-&quot;)[1] // returns CCCC
  </code></pre>
  <p>but I cannot crack the middle numbers should I not use .split for the middle value?</p>