3 ms·
Crafting a wide purpose regex to parse whatever HTML comes in is bad. Building a regex to extract relevant data from simple, fixed-form page data, bypassing ta
by lloeki 13y ago
Crafting a wide purpose regex to parse whatever HTML comes in is bad.
Building a regex to extract relevant data from simple, fixed-form page data, bypassing tags irrelevant to the problem at hand is not.
- untothebreach 13y ago...until the HTML changes. I haven't look at their parsing code, so I have no idea if it is any better than using a regex, but if the regex assumes too much, simply reordering the attributes in a tag (or something similar) could break a regex-based solution.