title: Parse html string and delete some elements
body: <p>I have a html string and I need to remove all between first occurrence of <code>&lt;div class="c</code> and first close tag <code>&gt;</code> and last closing tag "<code>&lt;/div&gt;</code>". The first, should be this because it class is dynamically generated.</p>
  
  <p>For example: <code>&lt;div class="c2029" style="font-size:45px"&gt;&lt;p class="auto"&gt;Testing 123...&lt;/p&gt;&lt;/div&gt;</code> should be transformed to <code>&lt;p class="auto"&gt;Testing 123...&lt;/p&gt;</code></p>
  
  <p>I tried this, but it's removing all string:</p>
  
  <pre><code>var testString = '&lt;div class="c2029" style="font-size:45px"&gt;&lt;p class="auto"&gt;Testing 123...&lt;/p&gt;&lt;/div&gt;'
  var result = testString.replace(/\&lt;div\_c.*\&gt;/, '');
  </code></pre>
  
  <p><strong>The content into div that should be removed is dynamically generated, it is an example.</strong></p>
  
  <p>More examples of dynamic string generated:</p>
  
  <pre><code>var testString = '&lt;div class="c03"&gt;&lt;div style="text-align: center"&gt;Testing 123...&lt;/div&gt;&lt;/div&gt;';
  var testString = '&lt;div class="c435"&gt;Hello&lt;/div&gt;';
  var testString = '&lt;div class="c1980"&gt;&lt;a href="stackoverflow.com"&gt;TEST&lt;/a&gt;&lt;/div&gt;';
  </code></pre>