$text = "This is a link to http://www.rntsoft.com/."; echo ereg_replace("http://([a-zA-Z0-9./-]+)$", "\\0", $text);?>