I'm trying to get some URL's from a webpage using PHP regular expressions.
I'm doing this:
preg_match_all('/"r"><a href="http:.*?"/i',$Rec_Data, $stuff );
This works in returning the url's however I also get code I don't want:
"r"><a href="http://www.cbsnews.com/stories/2002/12/03/politics/main531460.shtml"
I can't get rid of the "r" and the "a" tag. I need it so I don't match URL's I don't want. How do I get only the part that is matched by ".*?" ?