title: Regex for decimal input in Javascript having 1 to 3 digits before decimal and 1 to 3 digits after decimal
body: <p>I wanted to create a Javascript regex, which accepts </p>
  
  <p>123,
  123.123,
  12.34,
  1.324</p>
  
  <p>But should not accept</p>
  
  <p>1246,
  1234.45,
  1.2364</p>