title: Phone number regex for multiple patterns in Java
body: <p>I need help writing a regex for a phone number pattern that allows the following formats for a  phone number</p>
  <br>
  <pre>
  1)###-###-####
  or 
  2)#-###-###-####
  or
  3)###-####
  or
  4)##########
  or
  5)#######
  </pre>
  <p>I am well aware, that you are able to find regex patterns on the internet, but I havent been able to find one that will pass for all these patterns.</p>
  <p>I am using Java</p>