As both of these are valid
<A href="www.blah.com" class=link>blah<br>
<A class=link href="www.blah.com" class=link>blah
I can ereg for
href="blah.php"
and find it in both of the above which would be great except.
<!--href="blah.php" -->
will also be found which is not a valid link as will plain old
href="blah.php"
printed on the page.
I am not trying to parse an address out of the page and test it is valid or 404 as I already know both URL1 and URL2.
I need to see that the link on URL1 does indeed link to URL2
Is there a PHP function to follow a link?