Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool that is insufficiently sophisticated to understand the constructs employed by HTML.

etc. https://stackoverflow.com/a/1732454



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: