title: regex - two part number, not ending with dot or comma
body: <p>I need a help with simple regexp.
  I want that only correct input is numbers max containint two parts and divided by comma or dot. </p>
  
  <p>f.e</p>
  
  <pre><code>123 -&gt; correct
  123.123 -&gt; correct
  .123 -&gt; not correct
  123. -&gt; not correct
  .123.123 -&gt; not correct
  123.123.123 -&gt; not correct
  </code></pre>
  
  <p>same for comma</p>
  
  <p>I am using javascript for this.</p>