Read C++ enum in python

Ludo olivier.anospamrnospamnnospamanospamenospamz at affaires.net
Wed Aug 19 11:37:56 EDT 2009


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.



More information about the Python-list mailing list