title: Regex for integer or double values
body: <p>I'm trying to make a regex to accept both integer and double values (positive and negative).</p>
  
  <p>This is what I have: </p>
  
  <pre><code> @"-?d*(?:\d*\.\d*)?$"
  </code></pre>
  
  <p>Before this is marked as a duplicate question, with all the questions I've checked in SO I end up with the SAME PROBLEM:</p>
  
  <pre><code>5 and -5 -&gt; true
  
  5.00 and -5.00 -&gt; true
  
  BUT... 5. and -5. -&gt; true
  </code></pre>
  
  <p>It takes &lt; numbers + point only >, in this case ''5.'' and ''-5.'' as a "valid" numbers. Again, this very same problem was present in other similar answers I've already compiled.</p>