{"id":501,"date":"2021-10-08T12:26:07","date_gmt":"2021-10-08T04:26:07","guid":{"rendered":"http:\/\/blog.doublejia.cn\/?p=501"},"modified":"2021-10-08T12:32:18","modified_gmt":"2021-10-08T04:32:18","slug":"php-warning-preg_match-compilation-failed-pcre-does-not-support-l-l-nname-u-or-u-at-offset-d-in-s","status":"publish","type":"post","link":"https:\/\/blog.doublejia.cn\/?p=501","title":{"rendered":"PHP Warning: preg_match(): Compilation failed: PCRE does not support \\L, \\l, \\N{name}, \\U, or \\u at offset %d in %s"},"content":{"rendered":"\n<p>\u5982\u679c\u8981\u627e\u7684\u5b57\u7b26\u4e32\u4e2d\uff0c\u4f7f\u7528\u7684\u662f\u4e2d\u6587\u662f  \\uxxxx \u7684\u5f62\u5f0f\uff0c\u5728\u6b63\u5219\u4e2d\u4f7f\u7528 \\uxxxx \u5c31\u4f1a\u5f97\u5230\u8fd9\u4e2a\u62a5\u9519\u3002<\/p>\n\n\n\n<ul><li>\u5982\u679c\u6211\u4eec\u8981\u627e\u7684\u662f\u4e2d\u6587\u5b57\u7b26\u4e32\uff0c\u4f8b\u5982: $pattern = \"\/\\u60a8\/\" \u8f6c\u53d8\u6210\uff0c$pattern = \"\/\\\\\\\\x{60a8}\/u\"; \u7684\u5f62\u5f0f<\/li><li>\u5982\u679c\u6211\u4eec\u8981\u627e\u7684\u5b57\u7b26\u4e32\uff0c\u6b63\u597d\u662f \"\\u60a8\\u597d\" \u8fd9\u79cd\u5b57\u7b26\u4e32\uff0c\u6b63\u5219\u5c31\u8981\u5199\u6210  $pattern = \"\/\\\\\\\\u60a8\\\\\\\\u597d\/\"   <\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u8981\u627e\u7684\u5b57\u7b26\u4e32\u4e2d\uff0c\u4f7f\u7528\u7684\u662f\u4e2d\u6587\u662f \\uxxxx \u7684\u5f62\u5f0f\uff0c\u5728\u6b63\u5219\u4e2d\u4f7f\u7528 \\uxxxx \u5c31\u4f1a\u5f97\u5230\u8fd9\u4e2a\u62a5\u9519\u3002 \u5982\u679c\u6211\u4eec\u8981\u627e\u7684\u662f\u4e2d\u6587\u5b57\u7b26\u4e32\uff0c\u4f8b\u5982: $pattern = &#8220;\/\\u60a8\/&#8221; \u8f6c\u53d8\u6210\uff0c$pattern = &#8220;\/\\\\\\\\x{60a8}\/u&#8221;; \u7684\u5f62\u5f0f \u5982\u679c\u6211\u4eec\u8981\u627e\u7684\u5b57\u7b26\u4e32\uff0c\u6b63\u597d\u662f &#8220;\\u60a8\\u597d&#8221; \u8fd9\u79cd\u5b57\u7b26\u4e32\uff0c\u6b63\u5219\u5c31\u8981\u5199\u6210 $pattern = &#8220;\/\\\\\\\\u60a8\\\\\\\\u\u2026<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.doublejia.cn\/index.php?rest_route=\/wp\/v2\/posts\/501"}],"collection":[{"href":"https:\/\/blog.doublejia.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.doublejia.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.doublejia.cn\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.doublejia.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=501"}],"version-history":[{"count":5,"href":"https:\/\/blog.doublejia.cn\/index.php?rest_route=\/wp\/v2\/posts\/501\/revisions"}],"predecessor-version":[{"id":506,"href":"https:\/\/blog.doublejia.cn\/index.php?rest_route=\/wp\/v2\/posts\/501\/revisions\/506"}],"wp:attachment":[{"href":"https:\/\/blog.doublejia.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.doublejia.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.doublejia.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}