On Dec 30, 3:29 am, Marc 'BlackJack' Rintsch <bj_... at gmx.net> wrote: > One "recipe" is extracting blocks from text files that are delimited by a > special start and end line. Neat solution! I actually need such functionality every once in a while. Takewhile + dropwhile to the rescue! i.