Quote:
	
	
		
			
				
					Originally Posted by  fris
					 
				 
				
	Code: 
	<?
$link = '<a href="http://www.google.com" id="external">google</a>';
preg_match_all("/<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>(.*)<\/a>/siU",$link,$matches);
print_r($matches[2]);
?>
  
			
		 | 
	
	
 That's the same thing I have except that looks for all links, not ones with the url and anchor specified by the array.
Thanks anyway..
Bump.