You are viewing a single comment's thread. Return to all comments →
Python 3
import sys import re string = sys.stdin.read() matches = re.findall(r'\/\*[\s\S]*?\*\/|\/\/.*', string) for match in matches: print(re.sub(r'\n[ \t]+', '\n', match))
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 →
Python 3