Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: