title: Regex Matching numbers with floating point
body: <p>I have this pattern:</p>
  
  <pre><code>[0-9]*\.?[0-9]
  </code></pre>
  
  <p>It matches numbers but it also matches 3.5.4 as:</p>
  
  <ol>
  <li>3.5</li>
  <li>.4</li>
  </ol>
  
  <p>How to fix that(this input shouldn't be matched)?<br>
  <strong>UPDATE:</strong><br>
  this also should work on input:
  1 3.5.4 10</p>
  
  <p>1.2.  is not allowed<br>
  .3 is allowed</p>
  
  <p>any char that is not poart of numer is not allowed, like: a1 2.4f 3.  45, 67!</p>