01-26-2014, 09:46 AM
Hi,
I'm trying to scrape the links for the posts on this page http://bustedcoverage.com/other-sports/
Here's my regex
<div class='coedleftalign'><a href='(.*)' ><img src=
It should pull the url, which it does....for three of them before it breaks and returns urls PLUS a bunch of nonsense.
I tried using shortest match in another software and that seemed to help, but I don't know how to do it with findrx. I tried combining flags with | but I can't make it work. Here's my current findrx code
if(0=findrx(s pattern 1 4 l)) end "not found"
The weirdest thing is that I've been able to use regex and the findrx code above to scrape links for posts on almost all sites except for this one.
Thanks.
I'm trying to scrape the links for the posts on this page http://bustedcoverage.com/other-sports/
Here's my regex
<div class='coedleftalign'><a href='(.*)' ><img src=
It should pull the url, which it does....for three of them before it breaks and returns urls PLUS a bunch of nonsense.
I tried using shortest match in another software and that seemed to help, but I don't know how to do it with findrx. I tried combining flags with | but I can't make it work. Here's my current findrx code
if(0=findrx(s pattern 1 4 l)) end "not found"
The weirdest thing is that I've been able to use regex and the findrx code above to scrape links for posts on almost all sites except for this one.
Thanks.