title: Regex for 8 digit phone number (Singapore number length)
body: <p>I'm trying to validate my phone address text field. Can anyone provide me a simple regex to either validate for numeric digits only or a specific 8 digit regex?</p>
  
  <p>Much thanks!</p>
  
  <pre><code>$('#phone').on('input', function() {
  var input = $( this );
  var regex = /* regex needed here */
  var is_phone = regex.test(input.val());
  if (is_phone){input.removeClass("invalid").addClass("valid");}
  else {input.removeClass("valid").addClass("invalid");}
  });
  </code></pre>