title: JavaScript Validate Phone Number Using Regex
body: <p>Greetings overflowers,</p>
  
  <p>I'm trying to write a regular expression to validate phone numbers of the form ########## (10 digits)
  i.e. this is these are cases that would be valid: 1231231234 or 1111111111. Invalid cases would be strings of digits that are less than 10 digits or more than 10 digits.</p>
  
  <p>The expression that I have so far is this:
  "\d{10}"</p>
  
  <p>Unfortunately, it does not properly validate if the string is 11+ digits long.</p>
  
  <p>Does anyone know of an expression to achieve this task?</p>