Without seeing some data I may be off, but the approach I'd take is to gather each block of lines in an array. When you hit the last piece of a block you check for your match condition and conditionally write or don't write the accumulated block to output. Gathering/recognition of blocks is done by matching the tags you give above.
In reply to Re: Stripping Lines out of a File
by steves
in thread Stripping Lines out of a File
by Skyler99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |