3 ms·
I've found that regex is very brittle when you don't control what comes across. DOM traversal is far more reliable.
by bdcravens 14y ago
I've found that regex is very brittle when you don't control what comes across. DOM traversal is far more reliable.
- deleted 14y ago[deleted]
- derrida 14y agoAgree... basically search methods that specify a branch or leaf locally rather than the entire tree structure can more often resist layout changes. Regex for HTML is a bad idea ... http://stackoverflow.com/questions/590747/using-regular-expressions-to-parse-html-why-not#590789 http://stackoverflow.com/questions/590747/using-regular-expr...