title: Why does my Regex.Replace string contain the replacement value twice?
body: <p>I have the following string: <code>aWesdE</code>, which I want to convert to <code>http://myserver.com/aWesdE.jpg</code> using <code>Regex.Replace(string, string, string, RegexOptions)</code></p>
  
  <p>Currently, I use this code:</p>
  
  <pre><code>string input = "aWesdE";
  string match = "(.*)";
  string replacement = "http://myserver.com/$1.jpg";
  string output = Regex.Replace(input, match, replacement,
            RegexOptions.IgnoreCase | RegexOptions.Singleline);
  </code></pre>
  
  <p>The result is that output is ending up as: <code>http://myserver.com/aWesdE.jpghttp://myserver.com/.jpg</code> </p>
  
  <p>So, the replacement value shows up correctly, and then appears to be appended again - very strange.  What's going on here?</p>