preg_match("/^[\x{4e00}-\x{9fa5}A-Za-z0-9\x2d\x2e\x5f]+$/u", $name)
正则中 \x2d\x2e\x5f 表示哪些字符? 有没有一个完整的表可以参考?
\x2d\x2e\x5f
echo utf8_decode("\x2d\x2e\x5f");
其實就是 "-._"
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_...
其實就是 "-._"
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_...