We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
importreimportsyspat=r'(/\*.*?\*/|//.*?$)'txt=sys.stdin.read()# re.sub() for Testcase #4: others will just work with commentprint"\n".join(re.sub('\n\s+','\n',comment)forcommentinre.findall(pat,txt,re.DOTALL|re.MULTILINE))
Building a Smart IDE: Identifying comments
You are viewing a single comment's thread. Return to all comments →