Hacker News new | ask | show | jobs
by dsymonds 3580 days ago
The standard regexp package, unlike PCRE, is actually a proper regular expression parser/matcher. Anything doing backtracking is at risk of exponential blowup and isn't safe.

https://swtch.com/~rsc/regexp/regexp1.html

1 comments

which is exactly what I meant with less specialized but safe :)
It is also often much faster than pcre.