I’m making some site which must be fully unicode. Database etc are working, i only have some small logic error. Im testing my register form with ajax if fields are valid, in email field i check with regular expressions. However if a user has a email address like 日本人@日人日本人.com it isn’t coming trough. This type of mail addresses exist? Are
Tag: unicode
How to deal with Polish Characters while using regex?
I have street name as KRZYWOŃ ANIELI and so what should be my regex to allow this kind of expression. Currently I have simple one which uses /^[a-zA-Z ]+$/ Kindly advise. Answer Use /^[sp{L}]+$/u (PHP syntax). Edit: Adjusted regex to better handle whitespace.
regexp with russian lang
I can’t solve my problem with regexp. Ok, when i type: everything is ok, except situation with Russian language. so, i try to re-type this reg-exp: but this not working, i know some idea, just write: but this is crazy 😀 please, give me simple variant Answer Try a Unicode range: Don’t forget the /u flag for Unicode. In your
What is the best way to split a string into an array of Unicode characters in PHP?
In PHP, what is the best way to split a string into an array of Unicode characters? If the input is not necessarily UTF-8? I want to know whether the set of Unicode characters in an input string is a subset of another set of Unicode characters. Why not run straight for the mb_ family of functions, as the first