<a target="_blank" rel="nofollow" href="http://tcz.pl">http://tcz.pl</a>
Potrzebuje pobrać drugi link gdzie jest "nofollow", czy ktoś by mi mógł poprawić/pomóc poprawić moje wyrażenie regularne ?
<?php preg_match_all('/<a([\w\d\s-_"=]*)?href="(?P<url>.*)"([\w\d\s-_"=]*)?>/iU', '<a href="http://asd123.pl">http://asd123</a> <a target="_blank" rel="nofollow" href="http://tcz.pl">http://tcz.pl</a>', $result); ?>
<?php include_once('simple_html_dom.php'); $html = file_get_html('http://link z którego chcemy pobrać link nofollow'); // Find all links foreach($html->find('a') as $element) { if($element->rel == "nofollow") } ?>