title: Regular Expression With Mask
body: <p>I have a regular expression for phone numbers as follows:
   <code>^[01]?[- .]?(\([2-9]\d{2}\)|[2-9]\d{2})[- .]?\d{3}[- .]?\d{4}$</code></p>
  
  <p>I have a mask on the phone number textbox in the following format: <code>(___)___-____</code></p>
  
  <p>How can I modify the regular expression so that it accommodates the mask?</p>