till/Services_Mailman — comment on commit 30aa0bf35d913872c18177ac0732eb67ec57799f
File:  line 0
By hm2k:

I've applied all your changes and added an Exception class.

However, I've reviewed your suggestion on using DOM instead but I'm not convinced.

The reason I chose regex is because it's so reliable in circumstances like this.

To achieve what I can do in one line of regex takes about 5+ lines of dom calls and results in something that is completely unmaintainable.

I've looked at DOMXPath and simple_xml xpath, but I don't think it was designed to work with this legacy HTML that Mailman outputs.

If Mailman gave me more of an XML style output, I'd be more inclined to go down that route, but alas, it doesn't, which is why there's a need for this package.