title: classic asp replacing inside pre tag
body: <p>I have like following text which get from html form. Now I want to save it into db. Before saving I need to parse for line break replacing with <code>&lt;BR /&gt;</code> tag.</p>
  
  <p>I only need to replace text outside of <code>&lt;pre&gt;</code> tag and leave text as it is inside of <code>&lt;pre&gt;&lt;/pre&gt;</code> tag.</p>
  
  <p>This is what I currently have:</p>
  
  <pre><code> strTxt="aaaaaaaaaaaa
      bbbbbbbbbbb
       &lt;pre&gt;
        sss ssss
        sss ddd
       &lt;/pre&gt;
      asdafdsf
      sfsfsdf
       &lt;pre&gt;
        sfdsf
        sdfs
       &lt;/pre&gt;
      asfasfsaf"
  </code></pre>
  
  <p>And I want the result to be:</p>
  
  <pre><code>strTxt="aaaaaaaaaaaa&lt;br /&gt;
      bbbbbbbbbbb&lt;br /&gt;
       &lt;pre&gt;
        sss ssss
        sss ddd
       &lt;/pre&gt;
      asdafdsf&lt;br /&gt;
      sfsfsdf&lt;br /&gt;
       &lt;pre&gt;
        sfdsf
        sdfs
       &lt;/pre&gt;
      asfasfsaf"
  </code></pre>