preg_match_all("/http:\/\/www...(com|net)\/..(html|php|asp)/i","$fp",$result2);
It is supposed to strip out all files such as:
http://www.mysite.com/anything.php
I jut get the first few...
You have a couple of . in there. Those will consume everything* as long as it finds the rest or the re somewhere at the end.
try to replace .* by \w+
preg_match_all("/http:\/\/www.\w+.(com|net)\/\w+.(html|php|asp)/i","$fp",$result2);