I am not that good at the syntax of any of the preg_* functions and cannot figure out why i am getting an error with this code :
<?
$link = '<a href="test.php">test</a> | <a target="_blank" href="test1.php">Test 1</a>';
preg_match_all('<a\s[^>]*?\bhref\s*=\s*(['"])(.+?)\\1[^>]*?>', $link, $match);
var_dump($match);
?>
Thanks.