Good gay everyone, I would like to seek for some help. I'm not that good in perl and I would like to ask if how can I extract a table within table like the sample below:
<table>
<tr>
<td>
test1
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td>
test2
</td>
</tr>
</table>
</td>
<td>
<table>
<tr>
<td>
test3
</td>
<td>
<table>
<tr>
<td>
test4
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
The output should be like this:
<table>
<tr>
<td>
test2
</td>
</tr>
</table>
<table>
<tr>
<td>
test3
</td>
<td>
</td>
</tr>
</table>
<table>
<tr>
<td>
test3
</td>
</tr>
</table>
<table>
<tr>
<td>
test1
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
</table>