Reg Exp: Need advice concerning "greediness"
Alex
the_brain at mit.edu
Tue Oct 3 14:16:52 EDT 2000
> As I played around I saw, that it does not fully fit my needs: I do not want
> to extract information, I do want to change or insert information. If I got
> everything right, I would have to define methods for EVERY tag occurring in
> the HTML file, because otherwise the parser would omit information.
You're right, it's not a great fit, after all. My apologies.
The sgmllib gets closer, but you would still have to define 5 or so
methods, which is a lot of overhead, and you would lose any formatting
of the html in the output.
Alex.
--
Speak softly but carry a big carrot.
More information about the Python-list
mailing list