string replace with exception on certain strings
<p>I have this line of code that I'm using to prepare some CSS file:</p>

<pre><code>TheMinifiedCSS = TheMinifiedCSS.Replace("white", "#FFF");
</code></pre>

<p>The problem is that in CSS, I have this declaration:</p>

<pre><code>.SomeClass{white-space:pre-wrap;}
</code></pre>

<p>How do I change the <code>.Replace</code> statement to replace <code>white</code> with <code>#FFF</code> but to leave <code>white-space</code> alone?</p>

<p>Thanks.</p>

<p>Note, I know I can add <code>TheMinifiedCSS = TheMinifiedCSS.Replace("#FFF-space", "white-space");</code> but I'm looking for something cleaner.</p>
