Regex Help - Expression

Discussion in 'PHP' started by Sygon, May 17, 2008.

  1. #1
    I need somebody to help me with making this into a valid regular expression:

    
    
    <?php
    
    
    	$code = "<a href=\"".$uri."\">".$a."</a>"; // THIS NEEDS TO BE REGEX'd
    	
    	$site = "http://www.watchentourage.com";
    	
    	$contents = file_get_contents($site);
    	
    	$crawl = preg_match_all("$code",$contents,$results);
    
    	
    
    ?>
    
    
    PHP:

     
    Sygon, May 17, 2008 IP