I am at a company that is using java script. The company is looking to obfuscate the code. So what did they as me to do? Obfuscate the code using perl. Ironic how I am using perl to fix java script. I am pretty close on completing my obfuscation code. I am having a problem with a regular expresion. Is there a regular expresion that would delete c syntax comments. I have already removed the single line "//" comments. I am having trouble with the multi line /* comment
comment
comment
*/
codes. If there isn't a regular expresion to handle such a beast any ideas on how to pull the (/* */)comments out.
Thanks Brett