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:
What I want is to extract all the links that begins with http:// web.alphorm.com
I used the regex shown below:
matchObj = re.findall(r'(http:// web.alphorm.com/.*&Key-Pair-Id=APKAJF2PMCJPGKXG2GEA)"}',
string)
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!
What is wrong with it?