PHP Code:
$link = '<a href="http://www.google.com">google</a>';
preg_match('/a href="([^"]*?)">([^"]*?)<\/a>/', $link, $matches);
print_r($matches);
should print
Array
(
[0] => a href="http://www.google.com">google</a>
[1] => http://www.google.com
[2] => google
)
That help at all?