String Replace Problem
<p>I have a string replace problem. I have a result like:</p>

<pre><code>"Animal.Active = 1 And Animal.Gender = 2"
</code></pre>

<p>I want to replace something in this text. </p>

<p><code>Animal.Active</code> part is returned from a database and sometimes it is returned with the <code>Animal.Gender</code> part. </p>

<p>When <code>Animal.Gender</code> part comes from the database I have to remove this <code>And Animal.Gender</code> part. </p>

<p>Also if the string has <code>Animal.Active = 1</code>, I have to remove <code>Animal.Active = 1 And</code> part. Note the <code>And</code>. </p>

<p>How can I do this?  </p>
