title: RegEx help needed with HTML tags extraction
body: <p>I need to extract this text:</p>
  
  <pre><code>Line 1 text.
  Line 2 text. Line 2 some more text.
  Line 3 text,
  Line 4 text
  </code></pre>
  
  <p>from this HTML:</p>
  
  <pre><code>...
  &lt;tr&gt;&lt;td class="td_my_custom_text"&gt;Line 1 text. 
  &lt;br&gt;Line 2 text. Line 2 some more text.
  &lt;br&gt;Line 3 text, 
  &lt;br&gt;Line 4 text
  &lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
  ...
  </code></pre>
  
  <p>Using this RegEx: <code>&lt;td\ class="td_my_custom_text"&gt;[\s\S]*?&lt;/td&gt;</code> I have managed to get something close but not close enough. <code>&lt;td class="td_my_custom_text"&gt;</code>, <code>&lt;br&gt;</code> and <code>&lt;/td&gt;</code> are still inside and I am stuck.</p>
  
  <ol>
  <li>What needs to be changed in my regular expression to get rid of them?</li>
  <li>Is there some Windows tool to automate this job and copy just extracted data to new file(s)? I have 5000+ files like this one and I am thinking about making a small program using regex or html parser but I would like to know if there is a better approach first.</li>
  </ol>