- preg_replace: documentation ( source)
<?php
$string = "Here is another funny site here we.Go to the";
$string = preg_replace("/(^¦\s)(http:\/\/)?(www\.)?[\.0-9a-zA-Z\-_~]+\.(com¦net¦org¦info¦name¦biz¦.+\.\w\w)((\/)?[0-9a-zA-Z\.\-_~#]+)?\b/ie","",$string);
echo "Cleaned: " . $string;