3 ms·
>Seriously, just DONT DO IT(tm) Yes, you'll learn that this task is literally impossible, as well as why:) I think we've all used regex in a spot where it's im
by madmax96 10y ago
>Seriously, just DONT DO IT(tm)
Yes, you'll learn that this task is literally impossible, as well as why:) I think we've all used regex in a spot where it's impossible to do so correctly at some point.
- falcolas 10y agoWell, 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-expressions.html 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.
- madmax96 10y agoI had never seen PCRE regexes. I was thinking about the plain ones. This was pretty cool, thanks for sharing:)