title: Regular expression to extract contents between two specific words using python(or nltk)
body: <p>I'm trying to build a class and take each poem as an object, which has attributes of the title (followed by "POEM:"), author and content.
  I extracted title and author and put in a list.
  However, I don't know how to extract the content, and put into a list.</p>
  
  <p>I have a txt file which includes many poems. 
  Sample poems are:</p>
  
  <pre><code>POEM: lala AUTHOR: la
  aaaaaaaaaaaaaa,
  aaaaaaaaa,
  akaaaaaaaa
  
  POEM: alal AUTHOR: al
  llllllllllll,
  llllll.
  
  llllllll,
  lllllllllll
  
  POEM: lal AUTHOR:as
  sssssssss,
  sssssss,
  sssssss
  </code></pre>
  
  <p>This is what I did</p>
  
  <pre><code>import re
  f=open('Poems.txt', 'r')
  data=f.read().replace('\n','')
  re.findall(r"^POEM:.*?(?=POEM)",data)
  </code></pre>
  
  <p>I want to get all the poems as separate strings in a list, but I can only get the first poem.</p>
  
  <pre><code>'POEM: lala AUTHOR: la, aaaaaaaaaaaaaa, aaaaaaaaa, akaaaaaaaa'
  </code></pre>