php regex word boundary matching in utf-8

后端 未结 4 973
半阙折子戏
半阙折子戏 2020-11-27 08:30

I have the following php code in a utf-8 php file:

var_dump(setlocale(LC_CTYPE, \'de_DE.utf8\', \'German_Germany.utf-8\', \'de_DE\', \'german\'));
var_dump(m         


        
4条回答
  •  囚心锁ツ
    2020-11-27 08:51

    According to this comment, that is a bug in PHP. Does using \W instead of \b give any benefit?

提交回复
热议问题