I'm not able to remove python comment from source, using javascript regular expression, and negative lookahead in general exclude an inline comment, excluding string
what I've tried is this
regex: /#.*(?!')/gi
test file:
class AAA:
"""
item
"""
''''
SRC_TYPE = (
('cs', 'src C# for all'), # this is a comment a 'comment'
('cpp', 'C++'),
('ascript', 'a '),#djshdjshdjshds
('script', 'tst C#')
)
but don't works