SOrry that the title is a bit nebulous, but I can't figure out a way to solve this problem -
I have many downloaded files (could all be fopen files, but there you have it) and would like to scen them for information that lies between $pattern1 and $pattern2 .
Ok, simple example to try and extract a url from embedded links:
file contains:
<a href="http://www.somesite.com">SomeSite.com</a>
$pattern1="<a href=\"";
$pattern2="\">";
$pattern3="</a>";
So, how would one go about putting the url "http://www.somesite.com" "SomeSite.com" and the entire link "<a href="http.....</a>" into variables (or array),
I have gotten completely lost trying to make the entire file an exploded variable and trying to walk the array!
HELP (please!)