title: how to extract specific paragraphs from a text file in R
body: <p>I'm using R studio to process a text file which has textual data in the following form:</p>
  
  <pre><code>*
  
  A name
  A date
  A referene number
  
  A text....bla bla bla bla
  bla bla bla bla bla bla bla bla bla bla bla bla
  bla bla bla bla bla bla bla bla bla bla bla bla
  bla bla bla bla bla bla bla bla bla bla bla bla
  
  
  *
  
  A name
  A date
  A reference number
  
  Another text....bla bla bla bla
  bla bla bla bla bla bla bla bla bla bla bla bla
  bla bla bla bla bla bla bla bla bla bla bla bla
  bla bla bla bla bla bla bla bla bla bla bla bla
  
  *
  </code></pre>
  
  <p>and same pattern over and over again.</p>
  
  <p>I want to get the texts only and store each of them as an element in a list. I did A = grep("\*",myText) to get the number of lines where the * are. I want a loop through the file to get the text starting at A[1]+6 and ending at A[2]-1.</p>