Grr, the site stripped some of my code, here is the correct one 🙁
Hi, i wrote this code:
<?
$string = '<link>theusername</link><link>theusername</link>';
echo ereg_replace("<link>(.*)</link>", "<a href=\"presentation.php?username=\1\">\1</a>", "$string");
?>
It should convert $string, into two correct links, but instead the output of this is:
<a href="presentation.php?username=holmizen</link><link>holmizen">holmizen</link><link>holmizen</a>
Can you help get it right?