Possible Duplicate:
Grabbing the href attribute of an A element
I would like to make a php script that extracts all the href links from a webpage (mine) but only links with "/view/" in their string.
http://www.example.com/roger/that => not extracted
http://www.example.com/roger/view/that => extracted
And if possible all the links would be set in an array
So basically the script would be in my admin section and I would run it to get all the links containing the specific string '/view/' in an array to use later in another script.
I've done my research and found this script but can't modify it to only include the specific links (with "/view/")
I know you guys are not my slaves so even if you have any tips for modifying the existing script I would be happy !
My script http://pastebin.com/gYf9DZ8i
Thanks !