title: Perl - split html code by "table" tag and its contents
body: <p>I'm trying to split a chunck of html code by the "table" tag and its contents.</p>
  
  <p>So, I tried </p>
  
  <pre><code>my $html = 'aaa&lt;table&gt;test&lt;/table&gt;bbb&lt;table&gt;test2&lt;/table&gt;ccc';
  my @values = split(/&lt;table*.*\/table&gt;/, $html);
  </code></pre>
  
  <p>After this, I want the @values array to look like this: 
  <code>array('aaa', 'bbb', 'ccc')</code>.
  But it returns this array: 
  <code>array('aaa', 'ccc')</code>.
  Can anyone tell me how I can specify to the split function that each table should be parsed separately?</p>
  
  <p>Thank you!</p>