Hacker News new | past | comments | ask | show | jobs | submit login

Regexes can be evaluated in linear time, so you'd have to send gigabytes worth of text to cause any noticeable slowdown.



I believe with lookahead/behind a regex is technically not "regular" anymore, so you can definitely DoS a regex without GB worth of text.


Sure, but that regex doesn't have lookahead/lookbehind?




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

Search: