in reply to Reading chunks of data and then working on it

Look into the "flip-flop" operator. See Re: matching several lines for an example.
  • Comment on Re: Reading chunks of data and then working on it