3 comments

  • danlitt 23 minutes ago

    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.

      zarzavat 2 minutes ago

      Parsing HTML with a regex is never a good option, but it's sometimes the only option.

      rokkamokka 13 minutes ago

      You can parse a subset of it though, like if you're in control of the html yourself and avoid certain structures