in reply to Parsing file to pull out sections of text

What have you tried? This looks like something fairly simple...

Basically, I'd set a flag when I see d1, and unset it when I see d4. While the flag is set, push to the array. That's about three lines of code...

  • Comment on Re: Parsing file to pull out sections of text