title: Grep a range of words from a text file python
body: <p>I have a text file and my goal is to generate an output file with all the words that are between two specific words.</p>
  
  <p>For example, if I have this text:</p>
  
  <pre><code>askdfghj... Hello world my name is Alex and I am 18 years all ...askdfgj.
  </code></pre>
  
  <p>And I want to obtain all the words between "my" and "Alex".</p>
  
  <p>Output:</p>
  
  <pre><code>my name is Alex
  </code></pre>
  
  <p>I have it in mind... but I don't know how to create the range:</p>
  
  <pre><code>if 'my' in open(out).read():
          with open('results.txt', 'w') as f:
              if 'Title' in open(out).read():
                  f.write('*')
          break
  </code></pre>
  
  <p>I want an output file with the sentence "my name is Alex".</p>