title: How to grab the lines AFTER a matched line in python
body: <p>I am an amateur using Python on and off for some time now. Sorry if this is a silly question, but I was wondering if anyone knew an easy way to grab a bunch of lines if the format in the input file is like this:</p>
  
  <p>"
  Heading 1</p>
  
  <p>Line 1</p>
  
  <p>Line 2</p>
  
  <p>Line 3</p>
  
  <p>Heading 2</p>
  
  <p>Line 1</p>
  
  <p>Line 2</p>
  
  <p>Line 3
  "</p>
  
  <p>I won't know how many lines are after each heading, but I want to grab them all. All I know is the name, or a regular expression pattern for the heading.</p>
  
  <p>The only way I know to read a file is the "for line in file:" way, but I don't know how to grab the lines AFTER the line I'm currently on. Hope this makes sense, and thanks for the help!</p>
  
  <p><em><strong></em>*Thanks for all the responses! I have tried to implement some of the solutions, but my problem is that not all the headings are the same name, and I'm not sure how to work around it. I need a different regular expression for each... any suggestions?<em>*</em></strong></p>