3 ms·
I assume mostly using start of line instead of \b, and expecting w only to be zero+ times in the middle.
by ukd1 4y ago
I assume mostly using start of line instead of \b, and expecting w only to be zero+ times in the middle.
- y4mi 4y agoBecause i struggled to understand what you meant I'd like to rephrase it: It matches only if the regex is applied to a singular word. It's not going to match if there is a sentence or any apostrophe etc, which is implied to be valid input because it supposedly matches "all words".
- Filligree 4y agoThat’s easy to misunderstand. And if humans have trouble with it, then I won’t blame the poor AI. Getting an AI to ask clarifying questions would be useful, of course…