$msg = preg_replace("/(.*)/i","<a href=$1>$1</a>",$msg);
What's wrong with the line above? It's meant to replace http://example.com with <a href=http://example.com>http://example.com</a>
What's wrong with the line above? It's meant to replace http://example.com with <a href=http://example.com>http://example.com</a>