Returning to your question... usually you need a push down stack to handle recursive parsing like you are describing. When you see an opening tag, push it. When you see a closing tag pop it. In between walk up or down the stack's array to see where you are at present.
Phil
In reply to Re: Nesting below emptiness and/or inverting a hash.
by philcrow
in thread Nesting below emptiness and/or inverting a hash.
by Moron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |