News for hackers. Stuff that matters.
Re:Can regular expressions parse HTML or not? by nmcfarl on Thursday February 21, 2013 @11:40AM (#5258403)
Good question - but it is 90% of what I see people using HTML parsers for grab the content of a single tag from a page.

Which is why I often recommend "parsing" HTML with a regex. Particularly on throwaway projects. The overhead of a real parser is a waste.

And if the complexity grows - the sucker will need a rewrite anyhow.

There are no comments on this comment yet.