I know we had questions like this 1000s of times but I hope someone can help me to figure this one out.
i found this code
This will basically extract all the links from a html page. The problem is that it returns the entire a tag but I wish to have only the actual link within the href attributePHP Code:preg_match_all(
"/<A[ \r\n\t]{1}[^>]*HREF[^=]*=[ '\"\n\r\t]*([^ \"'>\r\n\t#]+)[ \"'>\r\n\t#>][^>]*>/isU",
$html,
$matches);
can someone help me with this?


Reply With Quote
Bookmarks