I need help !!! I want to preg_match a pattern for Chinese characters.
I can insert the Chinese characters into my database with a form fine, I can echo out the Chinese characters fine however can’t work out how to do the preg_match to check the entered data.
My understanding is that the Chinese characters are displayed in the database as numbers with ‘;&#’
Below is what i tried but doesn’t work
$username_patt = “/^[a-zA-Z0-9_-#&;]{1,240}$/”;
Thanks in advance