You are viewing a single comment's thread. Return to all comments →
Javascript solution:
const comments = input.match(/(\/\*.*?\*\/|\/\/.*?$)/gms); console.log(comments.join("\n").replace(/^\s+/gms, ''));
Seems like cookies are disabled on this browser, please enable them to open this website
Building a Smart IDE: Identifying comments
You are viewing a single comment's thread. Return to all comments →
Javascript solution: