title: Different links extraction from a text file?
body: <p>My problem is that I have a non-structured .txt file like the one below that contains different links because there is a signature in each link:</p>
  
  <p><a href="https://i.stack.imgur.com/NafrM.png" rel="nofollow noreferrer">Sample of the text file</a></p>
  
  <p>What I want is to extract all the links that begins with http:// web.alphorm.com</p>
  
  <p>I used the regex shown below:</p>
  
  <pre><code>matchObj = re.findall(r'(http:// web.alphorm.com/.*&amp;Key-Pair-Id=APKAJF2PMCJPGKXG2GEA)"}',
                        string)
  </code></pre>
  
  <p>But it doesn't really gives me what I want. It shrinks the text file and gives me the searched links, but along with other undesirable links and text! </p>
  
  <p>What is wrong with it?</p>