Hi, I have an html file, with xml style comments in:
<!-- Some comments here Blah ... --> I'd like to extract only the comments. My sense of smell suggests that there's probably a library (maybe an xml library) that does this already. Otherwise, my current alogorithm looks a bit like this: * Iterate over file * If current line contains <!--- - Toggle 'is_comment' to yes * If is_comment is yes, print the line * If current line contains --> - Toggle 'is_comment' to no This feels crude, but is it effective, or ok? Thanks, Laomao
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor