Regex to remove multi line comments

Posted by M28 on Stack Overflow See other posts from Stack Overflow or by M28
Published on 2010-03-16T23:01:38Z Indexed on 2010/03/16 23:11 UTC
Read the original article Hit count: 296

Filed under:
|

I am trying to use this regex (JS):

/\/\*(.*)\*\//g

To replace

/*
sdandsads
*/

with nothing.

But it is not working! Why? o_O

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about regex