title: Change regex to find decimals-Javascript
body: <p>Consider the following string:</p>
  
  <pre><code>var string="0px 0px 4.5px";
  </code></pre>
  
  <p>Now let's say I want to extract the numbers from that string.
  I will use the following regex:</p>
  
  <pre><code>var numbers=string.match(/\d+/g);
  </code></pre>
  
  <p>But what I get is:</p>
  
  <pre><code>["0","0","4"]
  </code></pre>
  
  <p>So you see that 4.5 was turned into an integer.So my question is how can I change the above regex to get floating numbers from a string</p>