Matching XML Tag Contents with Regex
Diez B. Roggisch
deets at nospam.web.de
Tue Dec 11 18:35:52 EST 2007
> I was hoping a simple pattern like <tag>.*text.*</tag> wouldn't be too
> complicated for Regex, but now I'm starting to agree with you. Parsing
> the entire XML Dom would probably be a lot easier.
That's one of the common problems with rexes and XML/HTML. They start
out fast and easy, but at some point they blow up - or fail to fulfill
the task.
Diez
More information about the Python-list
mailing list