title: replace text, but ignore a certain string inside the document
body: <p>I have a big string: <code>Hello &lt;span class="ashakd"&gt;my&lt;/span&gt; name is &lt;bob&gt;!</code></p>
  
  <p>I have a second string: <code>llo my name</code></p>
  
  <p>I have what i want to replace it with:<code>&lt;span class="ashakd"&gt;llo my name&lt;/span&gt;</code></p>
  
  <p>I need to <code>replace()</code> it as if the <code>&lt;span class="ashakd"&gt;</code> and <code>&lt;/span&gt;</code> didnt exist, but they are replaced with the string so the final result is: <code>He&lt;span class="ashakd"&gt;llo my name&lt;/span&gt; is &lt;bob&gt;!</code></p>
  
  <p>PS: <code>&lt;bob&gt;</code> exists so you cant ignore any text between two >'s it must specifically ignore <code>&lt;span class="ashakd"&gt;</code> and <code>&lt;/span&gt;</code></p>
  
  <p>very sorry if this is confusing. ask me to make it clearer if this is confusing</p>
  
  <p><b>edit</b></p>
  
  <p>sorry for being unclear, but it must only replace the  within my replace. so if the original string was: <code>Hello &lt;span class="ashakd"&gt;my&lt;/span&gt; name is &lt;bob&gt;&lt;span class="ashakd"&gt;hello&lt;/span&gt;!</code></p>
  
  <p>the result would be: <code>He&lt;span class="ashakd"&gt;llo my name&lt;/span&gt; is &lt;bob&gt;&lt;span class="ashakd"&gt;hello&lt;/span&gt;!</code></p>