[!--quoteo(post=354497:date=Mar 13 2006, 03:26 PM:name=wickning1)--][div class=\'quotetop\']QUOTE(wickning1 @ Mar 13 2006, 03:26 PM) [snapback]354497[/snapback][/div][div class=\'quotemain\'][!--quotec--] $matched = preg_match_all("{m=more&id=(.*?)>([^<]+?)</a>}", $txtonly, $match); Try that. [/quote] Thanks for replying wicknick1 :) unfortunatly I still get the double results. so one without linkname (where the <img> was) and one with the correct link as following: <a href=sitemap.php?m=more&id=###></a><a href=sitemap.php?m=more&id=###>Linkname</a> Maybe a way to seperate id=### and the link name? So when an ID is the same, it only results one ID ?