title: String.Replace method ignores case with special characters.
body: <p>I have a string containing a server file path ($\MyPath\Quotas\ExactPath\MyFile.txt) and a local file system path (C:\MyLocalPath\Quotas\ExactPath).  I want to replace the server file path with the local system path.</p>
  
  <p>I currently have an exact replace:</p>
  
  <pre><code>String fPath = @"$\MyPath\Quotas\ExactPath\MyFile.txt";
  String sPath = @"$\MyPath\Quotas\ExactPath\";
  String lPath = @"C:\MyLocalPath\Quotas\ExactPath\";
  
  String newPath = fPath.Replace(sPath, lPath);
  </code></pre>
  
  <p>But I want this to be a case-insensitive replace, so that it would replace $\MyPath\quotas\Exactpath\ with lPath as well.</p>
  
  <p>I came across the use of Regular Expressions like the following:</p>
  
  <pre><code>var regex = new Regex( sPath, RegexOptions.IgnoreCase );
  var newFPath = regex.Replace( fPath, lPath );
  </code></pre>
  
  <p>But how do I handle the special characters ($,\,/,:) so that it is not interpreted as a regular expression special character?</p>