I'm looking for a regex to match an entire table, which can contain tables in itself.
See my code snippet for an example.
The idea is to only match the parent table, so it has to keep track of how 'deep' it is in the html code
//some html syntax
<table> //match this table start tag
<tr><td><table><tr><td>more html</td></tr></table> </td></tr>//dont match these table tags
</table> //match this closing table tag