title: how to split string according to tag name in an HTML page using String.split()
body: <p>I want to split the following string according to the td tags:</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;body&gt;
    &lt;table&gt;
      &lt;tr&gt;&lt;td&gt;data1&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;data2&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;data3&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;data4&lt;/td&gt;&lt;/tr&gt;
    &lt;/table&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>I'v tried <code>split("h2");</code> and <code>split("[h2]");</code> but this way the split method splits the html code where it finds <code>"h"</code> or <code>"2"</code> and if Iam not mistaken also <code>"h2"</code>.</p>
  
  <p>My ultimate goal is to retrieve everything between <code>&lt;td&gt;</code> and <code>&lt;/td&gt;</code></p>
  
  <p>Can anyone please please tell me how to do this with <strong>only</strong> using <code>split()</code>?</p>
  
  <p>Thanks alot</p>