logoalt Hacker News

vharucktoday at 11:18 AM1 replyview on HN

The pattern only matches if both ends are word boundaries. So "diffs" won't match, but "Oh, ffs!" will. It's also why they had to use the pattern "shit(ty|tiest)" instead of just "shit".


Replies

BoppreHtoday at 11:21 AM

You're right, I missed the \b's. Thanks for the correction.