title: How do I replace all instances of a string within a repeating bounds?
body: <p>Suppose I have a string like this</p>
  
  <pre><code>&lt;other...Stuff&gt; BoundsTag &lt;relevant...Stuff&gt; EndsBoundsTag &lt;other...Stuff&gt; BoundsTag &lt;relevant...Stuff&gt; EndsBoundsTag &lt;other...Stuff&gt;
  </code></pre>
  
  <p>I want to do a search and replace on my string, but only change it if its within BoundsTag/EndsBoundsTag.  The string I'm trying to match exists many times in both <code>&lt;relevant...Stuff&gt;</code> and <code>&lt;other...Stuff&gt;</code>.  Also, there are an arbitrary number of BoundsTag/EndsBoundsTag pairs.</p>
  
  <p>Is this possible with perl regexes?</p>
  
  <p>Here is an example of a specific string where i'm trying to replace <code>MyMatch</code></p>
  
  <pre><code>BoundsTag asdfasdfa MyMatch asdfasdfasdf MyMatch sdfasd EndsBoundsTag asdfasdfasdfsad **MyMatch** asd *MyMatch** asf2ef23fasdfasdf BoundsTag fghjfghj MyMatch fghjfghjgh MyMatch fghjfghj EndsBoundsTag 
  </code></pre>
  
  <p>Here I would want to replace all the instance of MyMatch except for the ones between <code>**</code>.  And I don't mean specifically the characters <code>**</code>, those are just there to point it out.  Also, the spacing is just there for legibility.</p>