{"id":21297,"date":"2024-01-02T07:02:25","date_gmt":"2024-01-02T07:02:25","guid":{"rendered":"https:\/\/server.hk\/blog\/21297\/"},"modified":"2024-11-14T10:37:19","modified_gmt":"2024-11-14T02:37:19","slug":"how-to-fix-postgresql-error-code-2201b-invalid_regular_expression","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/21297\/","title":{"rendered":"\u5982\u4f55\u4fee\u5fa9 PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a2201B &#8211; invalid_regular_expression"},"content":{"rendered":"<h1>\u5982\u4f55\u4fee\u5fa9 PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a2201B &#8211; invalid_regular_expression<\/h1>\n<p>PostgreSQL \u662f\u4e00\u500b\u529f\u80fd\u5f37\u5927\u7684\u958b\u6e90\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bc\u5404\u7a2e\u61c9\u7528\u7a0b\u5e8f\u3002\u7136\u800c\uff0c\u8207\u4efb\u4f55\u8edf\u4ef6\u4e00\u6a23\uff0c\u5b83\u4e5f\u53ef\u80fd\u6703\u9047\u5230\u4e00\u4e9b\u932f\u8aa4\uff0c\u5f71\u97ff\u5176\u529f\u80fd\u3002\u5176\u4e2d\u4e00\u500b\u932f\u8aa4\u662f PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a2201B &#8211; invalid_regular_expression\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u6b64\u932f\u8aa4\u7684\u6210\u56e0\uff0c\u4e26\u63d0\u4f9b\u9010\u6b65\u89e3\u6c7a\u65b9\u6848\u4f86\u4fee\u5fa9\u5b83\u3002<\/p>\n<h2>\u4e86\u89e3\u932f\u8aa4<\/h2>\n<p>PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a2201B &#8211; invalid_regular_expression \u7576\u67e5\u8a62\u4e2d\u4f7f\u7528\u7684\u6b63\u5247\u8868\u9054\u5f0f\u7121\u6548\u6642\u6703\u767c\u751f\u3002\u6b63\u5247\u8868\u9054\u5f0f\u662f\u7528\u4f86\u9748\u6d3b\u4e14\u5f37\u5927\u5730\u5339\u914d\u5b57\u4e32\u7684\u6a21\u5f0f\u3002\u7576\u4f7f\u7528\u7121\u6548\u7684\u6b63\u5247\u8868\u9054\u5f0f\u6642\uff0cPostgreSQL \u6703\u5831\u544a\u6b64\u932f\u8aa4\u3002<\/p>\n<h2>\u53ef\u80fd\u7684\u6210\u56e0<\/h2>\n<p>\u60a8\u53ef\u80fd\u6703\u9047\u5230\u6b64\u932f\u8aa4\u7684\u5e7e\u500b\u539f\u56e0\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li><strong>\u8a9e\u6cd5\u932f\u8aa4\uff1a<\/strong> \u67e5\u8a62\u4e2d\u4f7f\u7528\u7684\u6b63\u5247\u8868\u9054\u5f0f\u8a9e\u6cd5\u4e0d\u6b63\u78ba\uff0c\u5c0e\u81f4\u7121\u6548\u7684\u6b63\u5247\u8868\u9054\u5f0f\u3002<\/li>\n<li><strong>\u4e0d\u652f\u6301\u7684\u7279\u6027\uff1a<\/strong> \u6b63\u5247\u8868\u9054\u5f0f\u4f7f\u7528\u4e86 PostgreSQL \u4e0d\u652f\u6301\u7684\u7279\u6027\u3002<\/li>\n<li><strong>\u7f3a\u5931\u5eab\u6587\u4ef6\uff1a<\/strong> \u5982\u679c\u60a8\u4f7f\u7528\u7684\u64f4\u5c55\u6216\u51fd\u6578\u4f9d\u8cf4\u65bc\u984d\u5916\u7684\u5eab\u6587\u4ef6\uff0c\u4e14\u9019\u4e9b\u5eab\u6587\u4ef6\u7f3a\u5931\u6216\u672a\u6b63\u78ba\u5b89\u88dd\uff0c\u5247\u53ef\u80fd\u6703\u5c0e\u81f4\u932f\u8aa4\u3002<\/li>\n<\/ul>\n<h2>\u4fee\u5fa9\u932f\u8aa4<\/h2>\n<p>\u8981\u4fee\u5fa9 PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a2201B &#8211; invalid_regular_expression\uff0c\u8acb\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\uff1a<\/p>\n<h3>\u6b65\u9a5f 1\uff1a\u6aa2\u67e5\u6b63\u5247\u8868\u9054\u5f0f\u8a9e\u6cd5<\/h3>\n<p>\u9996\u5148\uff0c\u6aa2\u67e5\u60a8\u67e5\u8a62\u4e2d\u4f7f\u7528\u7684\u6b63\u5247\u8868\u9054\u5f0f\u8a9e\u6cd5\u3002\u78ba\u4fdd\u5b83\u7b26\u5408\u6b63\u78ba\u7684\u8a9e\u6cd5\uff0c\u4e14\u4e0d\u5305\u542b\u4efb\u4f55\u932f\u5225\u5b57\u6216\u932f\u8aa4\u3002\u60a8\u53ef\u4ee5\u53c3\u8003 PostgreSQL \u6587\u6a94\u4ee5\u4e86\u89e3\u652f\u6301\u7684\u6b63\u5247\u8868\u9054\u5f0f\u8a9e\u6cd5\u3002<\/p>\n<h3>\u6b65\u9a5f 2\uff1a\u6aa2\u67e5\u4e0d\u652f\u6301\u7684\u7279\u6027<\/h3>\n<p>\u5982\u679c\u60a8\u7684\u6b63\u5247\u8868\u9054\u5f0f\u4f7f\u7528\u4e86\u9ad8\u7d1a\u7279\u6027\uff0c\u8acb\u6aa2\u67e5\u9019\u4e9b\u7279\u6027\u662f\u5426\u53d7\u5230 PostgreSQL \u7684\u652f\u6301\u3002\u4e00\u4e9b\u7279\u6027\u5728\u67d0\u4e9b\u7248\u672c\u6216\u914d\u7f6e\u7684 PostgreSQL \u4e2d\u53ef\u80fd\u4e0d\u53ef\u7528\u3002\u5982\u679c\u4e0d\u652f\u6301\u7684\u7279\u6027\u5c0e\u81f4\u932f\u8aa4\uff0c\u8acb\u8003\u616e\u4f7f\u7528\u66ff\u4ee3\u65b9\u6cd5\u6216\u7c21\u5316\u6b63\u5247\u8868\u9054\u5f0f\u3002<\/p>\n<h3>\u6b65\u9a5f 3\uff1a\u9a57\u8b49\u5eab\u6587\u4ef6\u4f9d\u8cf4\u6027<\/h3>\n<p>\u5982\u679c\u60a8\u4f7f\u7528\u7684\u64f4\u5c55\u6216\u51fd\u6578\u4f9d\u8cf4\u65bc\u984d\u5916\u7684\u5eab\u6587\u4ef6\uff0c\u8acb\u9a57\u8b49\u9019\u4e9b\u5eab\u6587\u4ef6\u662f\u5426\u5df2\u5b89\u88dd\u4e26\u6b63\u78ba\u914d\u7f6e\u3002\u4f7f\u7528\u9069\u7576\u7684\u5305\u7ba1\u7406\u5668\u6216\u5b89\u88dd\u65b9\u6cd5\u5b89\u88dd\u4efb\u4f55\u7f3a\u5931\u7684\u5eab\u6587\u4ef6\uff0c\u4e26\u78ba\u4fdd\u5eab\u6587\u4ef6\u7684\u7248\u672c\u8207\u60a8\u7684 PostgreSQL \u5b89\u88dd\u517c\u5bb9\u3002<\/p>\n<h3>\u6b65\u9a5f 4\uff1a\u6e2c\u8a66\u6b63\u5247\u8868\u9054\u5f0f<\/h3>\n<p>\u5728\u904b\u884c\u67e5\u8a62\u4e4b\u524d\uff0c\u55ae\u7368\u6e2c\u8a66\u6b63\u5247\u8868\u9054\u5f0f\u4ee5\u78ba\u4fdd\u5176\u6709\u6548\u6027\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u5728\u7dda\u6b63\u5247\u8868\u9054\u5f0f\u6e2c\u8a66\u5668\u6216\u7de8\u7a0b\u8a9e\u8a00\u63d0\u4f9b\u7684\u5de5\u5177\u4f86\u9a57\u8b49\u6b63\u5247\u8868\u9054\u5f0f\u3002\u9019\u4e00\u6b65\u53ef\u4ee5\u5e6b\u52a9\u8b58\u5225\u6b63\u5247\u8868\u9054\u5f0f\u672c\u8eab\u7684\u554f\u984c\u3002<\/p>\n<h3>\u6b65\u9a5f 5\uff1a\u66f4\u65b0 PostgreSQL<\/h3>\n<p>\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f\u820a\u7248\u672c\u7684 PostgreSQL\uff0c\u8acb\u8003\u616e\u66f4\u65b0\u5230\u6700\u65b0\u7684\u7a69\u5b9a\u7248\u672c\u3002\u8f03\u65b0\u7684\u7248\u672c\u901a\u5e38\u5305\u542b\u932f\u8aa4\u4fee\u5fa9\u3001\u6539\u9032\u548c\u66f4\u597d\u7684\u6b63\u5247\u8868\u9054\u5f0f\u652f\u6301\u3002\u5982\u679c\u932f\u8aa4\u662f\u7531\u820a\u7248\u672c\u4e2d\u7684\u5df2\u77e5\u554f\u984c\u5f15\u8d77\u7684\uff0c\u5347\u7d1a PostgreSQL \u53ef\u80fd\u6703\u89e3\u6c7a\u8a72\u932f\u8aa4\u3002<\/p>\n<h2>\u7e3d\u7d50<\/h2>\n<p>\u7e3d\u4e4b\uff0cPostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a2201B &#8211; invalid_regular_expression \u53ef\u80fd\u662f\u7531\u65bc\u8a9e\u6cd5\u932f\u8aa4\u3001\u4e0d\u652f\u6301\u7684\u7279\u6027\u6216\u7f3a\u5931\u7684\u5eab\u6587\u4ef6\u5f15\u8d77\u7684\u3002\u8981\u4fee\u5fa9\u6b64\u932f\u8aa4\uff0c\u8acb\u6aa2\u67e5\u6b63\u5247\u8868\u9054\u5f0f\u8a9e\u6cd5\uff0c\u6aa2\u67e5\u4e0d\u652f\u6301\u7684\u7279\u6027\uff0c\u9a57\u8b49\u5eab\u6587\u4ef6\u4f9d\u8cf4\u6027\uff0c\u55ae\u7368\u6e2c\u8a66\u6b63\u5247\u8868\u9054\u5f0f\uff0c\u4e26\u8003\u616e\u5c07 PostgreSQL \u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c\u3002\u6309\u7167\u9019\u4e9b\u6b65\u9a5f\u64cd\u4f5c\uff0c\u60a8\u53ef\u4ee5\u89e3\u6c7a\u8a72\u932f\u8aa4\uff0c\u78ba\u4fdd PostgreSQL \u6578\u64da\u5eab\u7684\u9806\u5229\u904b\u884c\u3002<\/p>\n<p>\u82e5\u9700\u53ef\u9760\u4e14\u9ad8\u6548\u7684 VPS \u8a17\u7ba1\u89e3\u6c7a\u65b9\u6848\uff0c\u8acb\u8003\u616e <a href=\"https:\/\/server.hk\">Server.HK<\/a>\u3002\u6211\u5011\u7684\u9999\u6e2f VPS \u8a17\u7ba1\u670d\u52d9\u70ba\u60a8\u7684 PostgreSQL \u548c\u5176\u4ed6\u6578\u64da\u5eab\u9700\u6c42\u63d0\u4f9b\u4e00\u6d41\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u4fee\u5fa9 PostgreSQL &#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-21297","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/21297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=21297"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/21297\/revisions"}],"predecessor-version":[{"id":24220,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/21297\/revisions\/24220"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=21297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=21297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=21297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}