title: Regex for negative and positive numbers
body: <p>I need a regex for an input field to allow negative and positive numbers and no alphabet/special characters. I have seen other people achieve this but they allow the minus sign at any point in the string whereas I only want to allow the minus sign at the beginning of the string.</p>
  
  <p>Note: I want to allow the user to use the arrow, del, home keys etc.</p>