title: Regular expression for version numbers
body: <p>I want to get such matches:</p>
  
  <pre><code>3.1.0
  10.5.1
  0.5
  </code></pre>
  
  <p>which may represent builds version numbering system.</p>
  
  <p>Non-matches:</p>
  
  <pre><code>3.1.
  </code></pre>
  
  <p>I tried this regex:</p>
  
  <pre><code>[0-9]+\.[0-9]+
  </code></pre>
  
  <p>This gets only <code>0.5</code> but not <code>10.5.1</code>.</p>