title: Regex for remove unnecessary zeros after decimal point
body: <p>I need to cut some numbers:</p>
  
  <pre><code>21250000.022000 -&gt; 21250000.022
  20.00  -&gt; 20
  200 -&gt; 200
  20.50 -&gt; 20.5
  </code></pre>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>This is what i try:
  <a href="https://regex101.com/r/Sdfe5D/1" rel="nofollow noreferrer">https://regex101.com/r/Sdfe5D/1</a>
  In this regex the problem is with the numnbers '200' and '20'. </p>