I have a form in my application that will fill using Unicode characters (Non English). As name field needs to fill just with letters, I have to detect numbers as an error. On the other hand, I don’t know how can I write the exact regular expression that works on Unicode.
Please help me.
I have a form in my application that will fill using Unicode characters (Non
Share
preg_match ('/\d/u', $string)will do.The u modifier makes it safe to use on unicode strings