News for hackers. Stuff that matters.
Re:Show HN: 15-question programming quiz with answers by ammon on Tuesday May 23, 2017 @01:39PM (#14403284)
Hmm. Just checked again. Two of the expressions match neither word, one matches both, and one matches only one.

EDIT: I see. The confusion is over partial match vs whole match. I thought whole matches were standard when talking about regular expression in the abstract, but looks like I was wrong. Just changed the problem to include the anchors. Thanks for pointing this out.

Re:Show HN: 15-question programming quiz with answers by ibdknox on Tuesday May 23, 2017 @01:48PM (#14403376)
That's not the standard meaning in my experience. Regex's are often used for extracting information from larger strings, forcing a full match by default would be pretty counter to their purpose.