<pre> <?php $html = <<<HTML <li><a href='index.php?case=index'>HOME</a></li> <li><a href='race/'>RACE</a></li> <li><a href="index.php?case=news">NEWS</a></li> <li><a href='index.php?case=pages&url=who'>Who</a></li> <li><a href="index.php?case=pages&url=contact">CONTACT</a></li> HTML; $regexp = "<a\s[^>]*href=(\"|'??)([^\"|' >]*?)\\1[^>]*>(.*)<\/a>"; preg_match_all("/$regexp/siU", $html, $matches); print_r($matches);
You have javascript disabled. You will not be able to edit any code.