the point catches everything except the newlines .. ( if the point is false )
so either use dotall (as mentioned in other answers / comments, this is not supported in javascript, but I will leave it here for reference)
/\/\*(.*)\*\//gs
or add space characters \s to expressions
/\/\*((\s|.)*?)\*\//g
Strike>
Alan mentioned in his comment the bad work from the answer I gave, so use instead instead .. (which translates all spaces and all without spaces, so that's all ..)
/\/\*([\s\S]*?)\*\//g
Gaby aka G. petrioli
source share