is it posible to replace
[lnk]http://www.site.nl[/lnk]
by
<a Href="http://www.site.nl">http://www.site.nl</a>
forget to say that te string is in an variable ($row["reactie"])witch comes out of a MySQL database
and the string that has to be replaced isn't the only data in the variable
$newtext = preg_replace("/[lnk](http://[[]*)[\lnk]/", "<a href=\"\1\">\1</a>", $oldtext);
something like that should work
thanks for the help.
it had a litle bug but it works perfect now.
the only problem is the case sencitivety of [lnk] and [/lnk] is there a way to remove it ???