Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
dev_slash_null
2y ago
0 comments
Share
Just in case you haven't seen the postmortem of the Cloudflare outage which also was caused by a regex based DoS:
https://blog.cloudflare.com/details-of-the-cloudflare-outage...
0 comments
default
newest
oldest
radiojosh
2y ago
That was a great read, but there was one thing I didn't understand: Why would the regex string have ".
" twice in a row? What does ".
.
" find that ".
" doesn't find? Does that just mean "at least two characters"?
rjbwork
2y ago
It means specifically 2 characters, and is equivalent to .{2}
..+ or ...* are ways of writing "at least two characters".
bn-usd-mistake
2y ago
A single `.` matches exactly one character. `..` matches exactly two characters (not more, not less).
j
/
k
navigate · click thread line to collapse