Replace last match in string
<p>Before a problem My string is  in this format:</p>

<pre><code>string filePath ="F:/jan11/MFrame/Templates/feb11";
</code></pre>

<p>I  repalce <code>TnaName</code> like this:</p>

<pre><code>filePath = filePath.Replace(TnaName, ""); //feb11 is TnaName
</code></pre>

<p>It's work.But I have a problem when <code>TnaName</code> is same as a <code>folder name</code>.Now I get a string like this:</p>

<pre><code>F:/feb11/MFrame/Templates/feb11
</code></pre>

<p>Now Its replace both <code>TnaName</code> means <code>feb11</code>.Is there any way to <code>replace</code> only last match .Thanks.</p>

<p><strong>note: <code>feb11</code> is <code>TnaName</code> which comes from another process that's not a problem.</strong></p>
