我刚刚创建了一个网站,我想创建一个“搜索”模块,数据库已创建,并且我已连接,系统似乎正常工作,但此消息覆盖了我的网页:PHP错误信息:preg_match
PHP错误消息:
Warning: preg_match() [function.preg-match]: Compilation failed: unknown property name Effective \ P or \ p at
offset 7 in/home/a3637125/public_html/Moteur-de-recherche/class.inc/moteur-php5.class-inc.php on line 706
相关的代码:
if(preg_match('#[\p{Xan}][^a-zA-Z]#iu', $mot)) {
$mot = str_ireplace($withaccent, $withnoaccent, htmlspecialchars(trim($mot)));
}
那么你的正则表达式是坏的,但我不知道你想用它来实现 – Steve