title: Regex Replace - TextBox Text to ONLY Include Floating Values
body: <h3>Revised</h3>
  <p>I'm trying to make a Regex Expression that parsed floating point numbers.</p>
  <ol>
  <li>At most 1 negative (-)</li>
  <li>At most 1 decimal (.)</li>
  <li>At most 3 digits to the left of the decimal</li>
  <li>At most 3 digits to the right of the decimal</li>
  </ol>
  <p>I'm at the point where I tried the following:</p>
  <pre><code>Regex regex = new Regex(@&quot;^(([\-]?|[\.]?|[\-\.]?|[0-9]?)([0-9]{0,3}))&quot;);
  bool isMatch = regex.IsMatch(text);
  </code></pre>
  <p>However, inputs like &quot;--&quot; still pass</p>