echo preg_match("/\b(בדיקה|מילה)\b/iu", "זוהי בדיקה");
For some reason, this code returns 1 on several servers that I tested on, but 0 on one specific server.
PCRE is compiled with UTF-8 support and support for Unicode properties. What could be the problem?
source
share