removing string based on start index and end index
<p>So, I have bunch of long strings hence thinking of an efficient way to do this operation
Suppose I have a string something like</p>

<pre><code> "&lt; stuff to remove&gt; get this stuff &lt;stuff to remove&gt;
</code></pre>

<p>So, I am trying to extract "get this stuff"</p>

<p>So I am writing something like this.</p>

<pre><code> strt_pos = 0
  end_pos = 0
 while True:
   strt_idx = string.find(start_point, strt_pos) # start_point = "&lt;" in our example
   end_idx  = string.find(end_point, end_pos)   # end_point = "&gt;" in our example
   chunk_to_remove = string[strt_idx:end_idx]
    # Now how do i chop this part off from the string??
   strt_pos = strt_pos + 1
    end_pos = end_pos + 1
   if str_pos &gt;= len(string) # or maybe end_pos &gt;= len(string):
      break
</code></pre>

<p>What is the better way to implement this</p>
