且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在网址正则表达式中添加阿拉伯字母

更新时间:2022-11-14 18:28:02

***的选择是使用 Unicode chracter类.对于您的情况,它将为\p{Arabic}.但是不要忘记,您还应该在末尾添加Unicode PCRE修饰符/u.

The best option is to use an Unicode chracter class for that. It would be \p{Arabic} for your case. But don't forget that you should also add the Unicode PCRE modifier /u at the end.