Just in case, test to see whether $bracket_count ever goes to -1. In the case where your string is aaa]bbb[... you probably want to do something a little more drastic than pushing (a, a, a, ]bbb[) into the output array :)
In reply to Re: Re: Non deliminatd Nested text
by tommyw
in thread Non deliminatd Nested text
by Dr.Altaica
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |