You probably want to split on \nend\n or so, and print an item if it matches your regex.
At least I guess that's what you want, since you didn't actually ask a question.
In reply to Re: General Question on parsing a variable
by moritz
in thread General Question on parsing a variable
by diamondsandperls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |