Have a look at at How can I pull out lines between two patterns that are themselves on different lines? in perlfaq6 for some ideas.
In reply to Re: Split files based on regexp
by RichardK
in thread Split files based on regexp
by TonySoprano
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |