title: Regex to match numbers, commas, dots, spaces in a given string
body: <p>I'm writing a regex to match any numbers, commas, dots, except when they are at the end of the number.</p>
  <p>Here is an example of what I have so far:</p>
  <pre><code>/([0-9]+[., ]*)+/
  </code></pre>
  <p>This is pretty good already because it is matching what I want. The only issue is that it's matching ' ' or ',' '.' at the end of the expression too.</p>
  <p>Let's say I have this string:</p>
  <pre><code>The cost of the food was 1 999,49 € without drinks.
  </code></pre>
  <p>I want to match the <code>1 999,49</code> string. Right now my regexp is matching <code>1 999,49 </code>. The same should happen if the format of the price is different like:</p>
  <pre><code>1,999.49 $ =&gt; 1,999.49 (with no whitespace or anything in the end)
  </code></pre>
  <p>How can I do this with regular expressions?</p>