hi,
i wanna expand this code and make email-adresses also active.
i'm not so good with RegEx. Could somebody please help me how to extract an email adress?
many thanx.
c
if (ereg("www.(.)([.].)(.{1,3})", mysql_result($result, $i, "Text"), $match)) {
$repl = ereg_replace($match[0], "<a href=http://www.$match[1]$match[2]$match[3]>$match[0]</a>" , "<p><font face='Arial' size='1' color='#000000'>" . nl2br(htmlentities(stripslashes(mysql_result($result, $i, "Text")))) . "</font></p>");
print "$repl";
} else {
print "<p><font face='Arial' size='1' color='#000000'>" . nl2br(htmlentities(stripslashes(mysql_result($result, $i, "Text")))) . "</font>";
}