Re:Show HN: Regex Cheatsheet
by dan_hawkins on Friday January 31, 2020 @09:40AM
(#22201979)
Is there a bug? In regexp for IPv4: https://ihateregex.io/expr/ip expression ends with {3} but the diagram states "2 times" in lower right - shouldn't it say "3 times"?
[ Parent
| on HN ]
I think it says "repeat 2" times. So basically you'v already went through the group and then 2 more times.
Because if I specify x{0,3}, i have 2 paths - around x and thru x + at most 2 more times
Re:Show HN: Regex Cheatsheet
by geongeorgek on Friday January 31, 2020 @11:19AM
(#22202833)
Yep you are right