title: Trying to parse numbers with regex
body: <p>I'm trying to parse all numbers from a text:</p>
  
  <pre><code>text 2030 text 2,5 text 2.000.000 2,000,000 -200 +31600000000. 200. 2.5 200? 1:200
  </code></pre>
  
  <p>Based on this regex:</p>
  
  <pre class="lang-php prettyprint-override"><code>(?&lt;!\S)(\-?|\+?)(\d*\.?\,?\d+|\d{1,3}(,?.?\d{3})*(\.\,\d+)?)(?!\S)
  </code></pre>
  
  <p>But endings like <code>.</code>, <code>?</code>, <code>!</code>, <code>,</code> right after the number doesn't match. I only want full matches with <code>preg_match_all</code>. (see image)</p>
  
  <p><a href="https://i.stack.imgur.com/5J6wu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5J6wu.png" alt="Overview of matches"></a></p>
  
  <p>I guess that the problem is in the last part of my regex <code>(?!\S)</code>. I tried different things but I can't figured it out how to solve this.</p>