You are viewing a single comment's thread. Return to all comments →
import re import sys code = sys.stdin.read() is_comment = re.compile(r"//[^\n]*|/\*.+?\*/", flags=re.DOTALL) [print(re.sub(r"\s{3,}", r"\n", comment)) for comment in is_comment.findall(code)]
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 →