C# replace part of string but only exact matches possible?
<p>I have a <code>string beginString = "apple|fruitsapple|turnip";</code></p>

<p>What I want to do is replace just apple with mango, not fruitsapple.</p>

<p><code>string fixedString = beginString.Replace("apple","mango");</code> This doesn't work because it replaces both apple and fruitsapple.</p>

<p>Any ideas?</p>
