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

すみません! 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.



That'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.




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

Search: