Hacker News new | ask | show | jobs
by falcolas 3691 days ago
Well, considering the PCRE regexes are nearly Turing complete, you can parse (well formed) HTML.

Someone better versed than I: https://nikic.github.io/2012/06/15/The-true-power-of-regular...

Of course, the money quote is: Just because you can, doesn’t mean that you should.

1 comments

I had never seen PCRE regexes. I was thinking about the plain ones. This was pretty cool, thanks for sharing:)