You are viewing a single comment's thread. Return to all comments →
Python 3
import re s = '' for _ in range(200): try: s += input().strip() + '\n' except: break print('\n'.join(re.findall(r'(//.*|/\*[\s\S]*?\*/)', s)))
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