6 points | by surprisetalk an hour ago
3 comments
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.
Parsing HTML with a regex is never a good option, but it's sometimes the only option.
You can parse a subset of it though, like if you're in control of the html yourself and avoid certain structures
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.
Parsing HTML with a regex is never a good option, but it's sometimes the only option.
You can parse a subset of it though, like if you're in control of the html yourself and avoid certain structures