in reply to Text Extraction

What have you tried so far?

Off the top of my head, I think you could:

  1. Slurp the whole file and regex (or index) through it.
  2. Read a little at a time and use /AZII\*/ .. /AZII\*/ to find the part you're looking for.
  3. Set $/='AZII*' (see perlvar) and go from there.

If you really want to be sure you have the fastest, implement it a few different ways and use Benchmark to choose.