I have this syntax of preg_replace:
preg_replace(Array("/\/\/.?\n/", "/\/*.?*\//"), null, $code)
but.... this also remove things like [url]http://[/url] between "..." - in other words, when in JScript I have set up a string:
var string = "http://www.some.url.com";
this preg_replace also remove part of the "string" from JScript...