in reply to extract content for nested pattern in a file

  1. Smells like homework. If so, say so.
  2. "... which is not working properly." So, what is it doing wrong (detailed explanation, please, including verbatim messages)?
Questions containing the words "doesn't work" (or their moral equivalent) will usually get a downvote from me unless accompanied by:
  1. code
  2. verbatim error and/or warning messages
  3. a coherent explanation of what "doesn't work actually means.
  • Comment on Re: extract content for nested pattern in a file