2 ms·
> debugging why a particular regex works slowly I encountered one of these once. A user decided to enter this in the middle of their post: ----------------
by Izkata 6y ago
> debugging why a particular regex works slowly
I encountered one of these once. A user decided to enter this in the middle of their post:
------------------------------
It triggered catastrophic backtracking, and IIRC, 16 characters was right around where you could see noticeable delay, then at about 19 was when it ran so long it never returned.