I want to change commented CDATA blocks in JavaScript from (space added): //< ![CDATA[
... AND ...
//]]> To this: /*< ![CDATA[*/
... AND ...
/*]]>*/ And I also want to change this: // [single line of comment javascript code] To this (or remove it altogether): /* [single line of comment javascript code] */ I having problems getting the RegEx right. So far, I just break the page. Here is what I tried for the latter example (extra space added): /{2}([^\< \>])+\n |