Hacker News new | past | comments | ask | show | jobs | submit login

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).




Did you mean either patter in "isolation"?


Yup, you're right - I wound up saying the opposite of what I meant!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: