News for hackers. Stuff that matters.
Re:Show HN: 15-question programming quiz with answers by FalconNL on Tuesday May 23, 2017 @01:43PM (#14403323)
The wording on question 9 (the regex one) is a little unclear: both b[l].e and ([^b]b[^b]*){3} will match blabber but not babel. Presumably the intended meaning is that the entire string must be matched, but the question does not make this explicit.
Re:Show HN: 15-question programming quiz with answers by ammon on Tuesday May 23, 2017 @01:47PM (#14403372)
Just added anchors to the expressions. Thanks for pointing this out!
Re:Show HN: 15-question programming quiz with answers by aaronblohowiak on Tuesday May 23, 2017 @01:57PM (#14403495)
I got the same one wrong, for the same reason. I picked the first one that worked instead of looking at all and picking the best one.
Re:Show HN: 15-question programming quiz with answers by acconrad on Tuesday May 23, 2017 @01:52PM (#14403428)
Glad someone pointed that out. I chose b[l].e and got it wrong and was scratching my head...
Re:Show HN: 15-question programming quiz with answers by krallja on Tuesday May 23, 2017 @06:02PM (#14405759)
I'm ashamed that the only one I missed was this regexp question, even after the anchors were added.