title: REGEX - Remove decimals from string
body: <p>I'm looking for some REGEX or some other way in JS how to remove decimal numbers from string.</p>
  <p>example input:</p>
  <pre><code>Mazda 6 2.0 Skyactiv-G Wagon 2018 - Startstop.sk - TEST
  Mercedes C63 AMG Sound REVVING 6,3l V8 
  </code></pre>
  <p>example output:</p>
  <pre><code>Mazda 6 Skyactiv-G Wagon 2018 - Startstop.sk - TEST
  Mercedes C63 AMG Sound REVVING l V8 
  </code></pre>
  <p>Everywhere I look people want to keep both integers and decimals and just remove strings. But I want to keep all integers just remove decimals (with comma<code>,</code> or dot<code>.</code>)</p>
  <p>I tried something like:</p>
  <pre><code>var string = &quot;Mazda 6 2.0 Skyactiv-G Wagon 2018 - Startstop.sk - TEST&quot;
  parseFloat(string.match(/[\d\.]+/))
  // Result is 6
  </code></pre>
  <p>But this actually just again remove everything exept integers.</p>