Do you know if there is a smart way to comment out a block of code containing regexp that contains * /?
For example, I found myself commenting on a block containing this statement:
... messageParser.run('messageFetched',/.*/); ...
But if I comment on the block:
/* messageParser.run('messageFetched',/.*/); */
then javascript interprets regexp as closing the comment and cannot parse the file. I tried to put // in front of the offending line, but this does not help, and I do not want to comment on every line in the block and not change the material of the regular expression.
Is there a smart way to do this?
source share