View Single Post
Old 08-01-2009, 12:25 PM  
KillerK
Confirmed User
 
Join Date: May 2008
Posts: 3,406
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?
KillerK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote