I'm making a php script that grabs the links out of a given site example:
"http://www.microsoft.com"
I want to be able to :
1-detect the site's homepage (even it was insisde another directory )
2-make a regular expresion math for the
<a ...some attributes here... href=....>LINK</a>
my regex is :
preg_match_all("!(<a *href=([^>]*)>)([^<]*)(<\/a>)!si",$string,$matches)
but this doesn't grab a link like:
<a class="mnpGlobalToolbarLink" dir="LTR" href="http://support.microsoft.com" target="_parent" guid="m1b3560fa9d8189ce386c2508f94c616f">Support</a>
Thanx
[edited by: jatar_k at 5:32 pm (utc) on Oct. 27, 2003]
[edit reason] turned off smilies [/edit]