title: C# Regex Anomaly
body: <p>I'm a bit perplexed here.</p>
  <p>I have a Regex which is to limit decimal places to two points.
  My second and third captures work as expected. But including the 1st capture <code>($1)</code> corrupts the string and includes all the decimal places (I get the original string).</p>
  <pre><code>var t = &quot;553.17765&quot;;
  var from = @&quot;(\d+)(\.*)(\d{0,2})&quot;;
  var to = &quot;$1$2$3&quot;;
  var rd = Regex.Replace(t, from,to);
  var r = Regex.Match(t, from);
  </code></pre>
  <p>Why can't I get the 553 in the $1 variable?
  <a href="https://i.stack.imgur.com/YHqlR.png" rel="nofollow noreferrer">LinqPad</a></p>