Neil Hodgson a écrit :

   For some headers I tried it didn't work until the .* was changed to a
non-greedy .*? to avoid removing from the start of the first comment to
the end of the last comment.

file_data = ' '.join(re.split(r'\/\*.*?\*\/', file_data))

Thank you ! I adopt it !

Cheers.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to