开发者

how to make a regular expression to accept

how to make a regular expression to accept only alphanumeric characters, accents, Asian and Arab?

accept: á í ó ú is 個 の 开发者_如何学GoД

deny: /'.

thanks


You can use Unicode character classes to pick and choose.

Not sure, but I guess in your case that would be:

 preg_match('/^[\p{Latin}\p{Han}\p{Arabic}]+$/u'
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜