In Visual Studio Code, I would like to replace, in all project files, all instructions log.info NOT equal to:
log.info(
`DEBUG other strings...
);
with nothing (I want to delete them in all files); for example, this log.info should be removed:
log.info(
`remove this instruction!!!
);
but not this (it has DEBUG has first word):
log.info(
`DEBUG other strings...
);
Pay attention, log.info() could be also on a single line, for example:
log.info(`remove this instruction!!!);<br>
log.info(`DEBUG other strings...);<br>
I have tried this, with no result:
log.(info|warn|error)\([\n|\s]`*(?!DEBUG).*\)