4 ms·
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
by FalconNL 9y ago
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.
- ammon 9y agoJust added anchors to the expressions. Thanks for pointing this out!
- acconrad 9y agoGlad someone pointed that out. I chose b[l].e and got it wrong and was scratching my head...
- aaronblohowiak 9y agoI 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.
- krallja 9y agoI'm ashamed that the only one I missed was this regexp question, even after the anchors were added.