3 ms·
すみません! It's because you have no space around. A more correct regexp would be \b\w+\b, with zero-width "word boundary" psttetbs instead of spaces.
by nine_k 2y ago
すみません! It's because you have no space around.
A more correct regexp would be \b\w+\b, with zero-width "word boundary" psttetbs instead of spaces.
- Liquid_Fire 2y agoThat's just passing the problem onto how you define \b. Since Japanese uses no spaces, it would match entire phrases or sentences as "words", treating only punctuation as word boundaries.