title: extract data using regex?
body: <p>I am writing a code to extract a paragragh in a document using regex and I am using python. The data contains a lot of similar words,but i need to extract the paragraph when it hits the first recurring word.</p>
  
  <p>ex: data.txt</p>
  
  <pre><code>extract data 
  useful data is extracted
  
  extract numbers
  useful numbers are extracted
  
  extract variable 
  useful variables are extracted
  </code></pre>
  
  <p>The question is, I have to extract only the below:</p>
  
  <pre><code>"extract numbers
  useful numbers are extracted"
  </code></pre>