News for hackers. Stuff that matters.
Re:Show HN: Search code in GitHub repos using regular expres... by glangdale on Monday February 24, 2020 @06:36AM (#22403228)
pattern is, btw: (teakettle\w|abcd)

Either pattern in alternation works fine, but even a simple alternation of the two goes back to the behavior that you might expect to get from awful patterns like \d..\d..\w...\s...\d (i.e. reporting only a partial set of matches).

Re:Show HN: Search code in GitHub repos using regular expres... by michaelmior on Monday February 24, 2020 @08:12AM (#22403687)
Did you mean either patter in "isolation"?
Re:Show HN: Search code in GitHub repos using regular expres... by glangdale on Monday February 24, 2020 @03:31PM (#22408106)
Yup, you're right - I wound up saying the opposite of what I meant!