2019-06-26, 19:31
Regarding parsing HTML with regexps. Regexps can be used for picking relatively simple patterns and they are indeed very fast because they do not have the overhead of building a parsing tree. But with complex parsing criteria they simply become unmaintainable mess. That is why it's generally not recommended to parse HTML with regexps, but, of course, you should take into account your specific situation.