It might be helpful if you told us what patterns you were looking for using English, because your regexes seem a bit strange.
As for solving your basic problem (print until X line, then stop until Y line, then start again), you might consider a state machine; that is, use a global variable that keeps track of whether you're printing or not, and change it inside the loop if the conditions change--and then just print at the end of the loop when the variable tells you you're supposed to be printing.
In reply to Re: skipping lines when parsing a file
by ssandv
in thread skipping lines when parsing a file
by lomSpace
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |