有一个常用的正则表达式用于 url 去重 ~[^\\pL\d]+~u,但是在第一个 preg_replace() 中的 \\pL 是什么意思?这里有一些示例: 如何在 slugify 函数中将 ":" 替换为 "/"? http://snipplr.com/view/22741/slugify-a-string-in-php/ http://sourcecookbook.com/en/recipes/8/function-to-slugify-strings-in-php http://www.daniweb.com/web-development/php/threads/471380/php-slugify-two-variables-together
\\pL 是 \\p{L} 的简写。 参考文献 除了标准符号 \p{L},Java、PHP、Perl、PCRE 和 JGsoft 引擎都允许使用短语 \pL。该缩写仅适用于���个字母的 Unicode 属性。\pLl 不等同于 \p{Ll}。它等同于 \p{L}l,它匹配 Al 或 àl 或任何以字母 l 结尾的 Unicode 字母。
regex \\pL
直接导向这个网址:http://www.regular-expressions.info/unicode.html - germi