content; $regexp = "]*href=(\"??)([^\" >]*?)\\1[^>]*>(.*)<\/a>"; if(preg_match_all("/$regexp/siU", $input, $matches)) {} $url = $matches['2']['0']; $img = $matches['3']['0']; ?>