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'
精彩评论