tags:

views:

24

answers:

1
+2  A: 
<?php
$subject = "This is for @codeworxx - you have to try first!";
$text = eregi_replace('@([-a-zA-Z0-9]+)','<a href="http://www.google.de/\\1"&gt;\\1&lt;/a&gt;', $subject);
echo $text;
ax
ahhhhh perfect - thanks!
codeworxx
All of the ereg_* functions have been deprecated in PHP5.3 and they'll be gone in PHP6. You should use the preg_* functions instead.
CaseySoftware