title: I can't seem to figure out the regular expression
body: <p>I have the following code. I am trying to have the regular express test the phone number for validation. With the current argument the function should return positive, but it doesn't and I can't figure out why.</p>
  <pre><code>function telephoneCheck(str) {
  
    let reg = /^[\d]{0,1}[\w]{0,1}[(]{0,1}[\d]{3}[-)\w]{0,2}[\d]{3}[-\w]{0,1}[\d]/;
    return reg.test(str);
    
  }
  
  console.log(&quot;function: &quot; + telephoneCheck(&quot;1 (555) 555-5555&quot;));
  </code></pre>
  <p>Can anyone see what I am missing?</p>