Thanks for the info scoppc.
I have found this code that replaces www.whatever.com into <a href="http://www.whatever.com">www.whatever.com</a>, here is the code:
<?
$link = "/(www[^ ]*)/i";
$link_replace = "<a href=\"http://\1\">\1</a>";
print preg_replace($link, $link_replace, $text_1);
?>
What i would like to know (looks complecated, any websites that explain preg_replace for idiots would be appreciated🙂 )
a)where would i put target= in the code
b)instead of the whatever between the url tags i can have some thing else ther like <a href="http://www.whatever.com">click here</a>
thanks