{"id":1396,"date":"2020-03-02T22:35:00","date_gmt":"2020-03-02T14:35:00","guid":{"rendered":"https:\/\/www.yumefx.com\/?p=1396"},"modified":"2021-03-03T15:58:56","modified_gmt":"2021-03-03T07:58:56","slug":"%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/www.yumefx.com\/?p=1396","title":{"rendered":"\u6b63\u5219\u8868\u8fbe\u5f0f"},"content":{"rendered":"\n<p>\u8fd9\u7bc7\u6587\u7ae0\u8bb0\u5f55\u4e00\u4e0b\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u57fa\u672c\u7528\u6cd5\u3002<\/p>\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u4ec0\u4e48\u662f\u6b63\u5219\u8868\u8fbe\u5f0f<\/h1>\n<p class=\"note\"><span class=\"name\">\u5b57\u7b26<\/span>\u662f\u8ba1\u7b97\u673a\u8f6f\u4ef6\u5904\u7406\u6587\u5b57\u65f6\u6700\u57fa\u672c\u7684\u5355\u4f4d\uff0c\u53ef\u80fd\u662f\u5b57\u6bcd\uff0c\u6570\u5b57\uff0c \u6807\u70b9\u7b26\u53f7\uff0c\u7a7a\u683c\uff0c\u6362\u884c\u7b26\uff0c\u6c49\u5b57\u7b49\u7b49\u3002<span class=\"name\">\u5b57\u7b26\u4e32<\/span>\u662f0\u4e2a\u6216\u66f4\u591a\u4e2a\u5b57\u7b26\u7684\u5e8f\u5217\u3002<\/p>\n<p class=\"note\">\u8bf4\u67d0\u4e2a\u5b57\u7b26\u4e32<span class=\"name\">\u5339\u914d<\/span>\u67d0\u4e2a\u6b63\u5219\u8868\u8fbe \u5f0f\uff0c\u901a\u5e38\u662f\u6307\u8fd9\u4e2a\u5b57\u7b26\u4e32\u91cc\u6709\u4e00\u90e8\u5206\uff08\u6216\u51e0\u90e8\u5206\u5206\u522b\uff09\u80fd\u6ee1\u8db3\u8868\u8fbe\u5f0f\u7ed9\u51fa\u7684\u6761\u4ef6\u3002<\/p>\n<p>\u5728\u7f16\u5199\u5904\u7406\u5b57\u7b26\u4e32\u7684\u7a0b\u5e8f\u6216\u7f51\u9875\u65f6\uff0c\u7ecf\u5e38\u4f1a\u6709\u67e5\u627e\u7b26\u5408\u67d0\u4e9b\u590d\u6742\u89c4\u5219\u7684\u5b57\u7b26\u4e32\u7684\u9700\u8981\u3002<span class=\"name\">\u6b63\u5219\u8868\u8fbe\u5f0f<\/span>\u5c31\u662f\u7528\u4e8e\u63cf\u8ff0\u8fd9\u4e9b\u89c4\u5219\u7684\u5de5\u5177\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u5c31\u662f\u8bb0\u5f55\u6587\u672c\u89c4\u5219\u7684\u4ee3\u7801\u3002<\/p>\n<p>\u5f88\u53ef\u80fd\u4f60\u4f7f\u7528\u8fc7Windows\/Dos\u4e0b\u7528\u4e8e\u6587\u4ef6\u67e5\u627e\u7684<span class=\"name\">\u901a\u914d\u7b26(wildcard)<\/span>\uff0c \u4e5f\u5c31\u662f<code><span class=\"code\">*<\/span><\/code>\u548c<code><span class=\"code\">?<\/span><\/code>\u3002\u5982\u679c\u4f60\u60f3\u67e5\u627e\u67d0\u4e2a\u76ee\u5f55\u4e0b\u7684\u6240 \u6709\u7684Word\u6587\u6863\u7684\u8bdd\uff0c\u4f60\u4f1a\u641c\u7d22<code>*.doc<\/code>\u3002\u5728\u8fd9\u91cc\uff0c<code><span class=\"code\">*<\/span><\/code>\u4f1a\u88ab\u89e3\u91ca\u6210\u4efb\u610f\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<p>\u548c\u901a\u914d\u7b26\u7c7b\u4f3c\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u4e5f\u662f\u7528\u6765\u8fdb\u884c\u6587\u672c\u5339\u914d\u7684\u5de5\u5177\uff0c\u53ea\u4e0d\u8fc7\u6bd4\u8d77\u901a\u914d\u7b26\uff0c\u5b83\u80fd\u66f4\u7cbe \u786e\u5730\u63cf\u8ff0\u4f60\u7684\u9700\u6c42\u2014\u2014\u5f53\u7136\uff0c\u4ee3\u4ef7\u5c31\u662f\u66f4\u590d\u6742\u3002<\/p>\n<p>\u6bd4\u5982\u4f60\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u7528\u6765\u67e5\u627e<span class=\"desc\">\u6240\u6709\u4ee50\u5f00\u5934\uff0c\u540e\u9762\u8ddf\u7740 2-3\u4e2a\u6570\u5b57\uff0c\u7136\u540e\u662f\u4e00\u4e2a\u8fde\u5b57\u53f7\u201c-\u201d\uff0c\u6700\u540e\u662f7\u62168\u4f4d\u6570\u5b57\u7684\u5b57\u7b26\u4e32<\/span>(\u50cf<span class=\"string\">010-12345678<\/span>\u6216<span class=\"string\">0376-7654321<\/span>)\u3002<\/p>\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u5165\u95e8<\/h1>\n<p>\u5b66\u4e60\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u6700\u597d\u65b9\u6cd5\u662f\u4ece\u4f8b\u5b50\u5f00\u59cb\uff0c\u7406\u89e3\u4f8b\u5b50\u4e4b\u540e\u518d\u81ea\u5df1\u5bf9\u4f8b\u5b50\u8fdb\u884c\u4fee\u6539\uff0c\u5b9e\u9a8c\u3002\u4e0b\u9762\u7ed9\u51fa\u4e86\u4e0d\u5c11\u7b80\u5355\u7684\u4f8b\u5b50\uff0c\u5e76\u5bf9\u5b83\u4eec\u4f5c\u4e86\u8be6\u7ec6\u7684\u8bf4\u660e\u3002<\/p>\n<p>\u5047\u8bbe\u4f60\u5728\u4e00\u7bc7\u82f1\u6587\u5c0f\u8bf4\u91cc\u67e5\u627e<span class=\"desc\">hi<\/span>\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<code><span class=\"regex\">hi<\/span><\/code>\u3002<\/p>\n<p>\u8fd9\u51e0\u4e4e\u662f\u6700\u7b80\u5355\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u4e86\uff0c\u5b83\u53ef\u4ee5\u7cbe\u786e\u5339\u914d\u8fd9\u6837\u7684\u5b57\u7b26\u4e32\uff1a<span class=\"desc\">\u7531\u4e24\u4e2a\u5b57\u7b26\u7ec4\u6210\uff0c\u524d\u4e00\u4e2a\u5b57\u7b26\u662fh,\u540e \u4e00\u4e2a\u662fi<\/span>\u3002<\/p>\n<p>\u901a\u5e38\uff0c\u5904\u7406\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u5de5\u5177\u4f1a\u63d0\u4f9b\u4e00\u4e2a\u5ffd\u7565\u5927\u5c0f\u5199\u7684\u9009\u9879\uff0c\u5982\u679c\u9009\u4e2d\u4e86\u8fd9\u4e2a\u9009\u9879\uff0c\u5b83\u53ef\u4ee5\u5339\u914d<span class=\"string\">hi<\/span>,<span class=\"string\">HI<\/span>,<span class=\"string\">Hi<\/span>,<span class=\"string\">hI<\/span>\u8fd9\u56db\u79cd\u60c5\u51b5\u4e2d\u7684\u4efb\u610f\u4e00\u79cd\u3002<\/p>\n<p>\u4e0d\u5e78\u7684\u662f\uff0c\u5f88\u591a\u5355\u8bcd\u91cc\u5305\u542b<span class=\"string\">hi<\/span>\u8fd9\u4e24\u4e2a\u8fde\u7eed\u7684\u5b57\u7b26\uff0c\u6bd4\u5982<span class=\"string\">him<\/span>,<span class=\"string\">history<\/span>,<span class=\"string\">high<\/span>\u7b49\u7b49\u3002\u7528<span class=\"regex\">hi<\/span>\u6765\u67e5\u627e\u7684\u8bdd\uff0c\u8fd9\u91cc\u8fb9\u7684<span class=\"string\">hi<\/span>\u4e5f\u4f1a\u88ab\u627e\u51fa\u6765\u3002\u5982\u679c\u8981<span class=\"desc\">\u7cbe\u786e\u5730\u67e5\u627ehi\u8fd9\u4e2a\u5355\u8bcd<\/span>\u7684 \u8bdd\uff0c\u6211\u4eec\u5e94\u8be5\u4f7f\u7528<code><span class=\"regex\">\\bhi\\b<\/span><\/code>\u3002<\/p>\n<p><code><span class=\"part\">\\b<\/span><\/code>\u662f\u6b63\u5219\u8868\u8fbe\u5f0f\u89c4\u5b9a\u7684\u4e00\u4e2a\u7279\u6b8a\u4ee3\u7801\uff08\u597d\u5427\uff0c\u67d0\u4e9b\u4eba\u53eb\u5b83<span class=\"name\">\u5143\u5b57\u7b26\uff0cmetacharacter<\/span>\uff09\uff0c\u4ee3\u8868\u7740<span class=\"desc\">\u5355\u8bcd\u7684\u5f00\u5934\u6216\u7ed3\u5c3e\uff0c\u4e5f\u5c31 \u662f\u5355\u8bcd\u7684\u5206\u754c\u5904<\/span>\u3002\u867d\u7136\u901a\u5e38\u82f1\u6587\u7684\u5355\u8bcd\u662f\u7531\u7a7a\u683c\uff0c\u6807\u70b9\u7b26\u53f7\u6216\u8005\u6362\u884c\u6765\u5206\u9694\u7684\uff0c\u4f46\u662f<span class=\"code\">\\b<\/span>\u5e76 \u4e0d\u5339\u914d\u8fd9\u4e9b\u5355\u8bcd\u5206\u9694\u5b57\u7b26\u4e2d\u7684\u4efb\u4f55\u4e00\u4e2a\uff0c\u5b83<strong>\u53ea\u5339\u914d\u4e00\u4e2a\u4f4d\u7f6e<\/strong>\u3002<\/p>\n<p class=\"note\">\u5982\u679c\u9700\u8981\u66f4\u7cbe\u786e\u7684\u8bf4\u6cd5\uff0c<code><span class=\"code\">\\b<\/span><\/code>\u5339\u914d\u8fd9\u6837\u7684\u4f4d\u7f6e\uff1a\u5b83\u7684\u524d\u4e00\u4e2a\u5b57\u7b26 \u548c\u540e\u4e00\u4e2a\u5b57\u7b26\u4e0d\u5168\u662f(\u4e00\u4e2a\u662f,\u4e00\u4e2a\u4e0d\u662f\u6216\u4e0d\u5b58\u5728)<code><span class=\"code\">\\w<\/span><\/code>\u3002<\/p>\n<p>\u5047\u5982\u4f60\u8981\u627e\u7684\u662f<span class=\"desc\">hi\u540e\u9762\u4e0d\u8fdc\u5904\u8ddf\u7740\u4e00\u4e2aLucy<\/span>\uff0c\u4f60\u5e94\u8be5\u7528<code><span class=\"regex\">\\bhi\\b.*\\bLucy\\b<\/span><\/code>\u3002<\/p>\n<p>\u8fd9\u91cc\uff0c<code><span class=\"part\">.<\/span><\/code>\u662f\u53e6\u4e00\u4e2a\u5143\u5b57\u7b26\uff0c\u5339\u914d<span class=\"desc\">\u9664\u4e86\u6362\u884c\u7b26\u4ee5 \u5916\u7684\u4efb\u610f\u5b57\u7b26<\/span>\u3002<code><span class=\"part\">*<\/span><\/code>\u540c\u6837\u662f\u5143\u5b57\u7b26\uff0c\u4e0d\u8fc7\u5b83\u4ee3\u8868\u7684\u4e0d\u662f\u5b57\u7b26\uff0c\u4e5f\u4e0d\u662f\u4f4d\u7f6e\uff0c\u800c\u662f\u6570\u91cf\u2014\u2014\u5b83 \u6307\u5b9a*<span class=\"desc\">\u524d\u8fb9\u7684\u5185\u5bb9\u53ef\u4ee5\u8fde\u7eed\u91cd\u590d\u4f7f\u7528\u4efb\u610f\u6b21\u4ee5\u4f7f\u6574\u4e2a\u8868\u8fbe\u5f0f\u5f97\u5230\u5339\u914d<\/span>\u3002\u56e0\u6b64\uff0c<code><span class=\"part\">.*<\/span><\/code>\u8fde\u5728\u4e00\u8d77\u5c31\u610f\u5473\u7740<span class=\"desc\">\u4efb\u610f\u6570\u91cf\u7684\u4e0d\u5305\u542b\u6362\u884c\u7684\u5b57\u7b26<\/span>\u3002\u73b0\u5728<code><span class=\"regex\">\\bhi\\b.*\\bLucy\\b<\/span><\/code>\u7684\u610f\u601d\u5c31\u5f88\u660e\u663e\u4e86\uff1a<span class=\"desc\">\u5148\u662f\u4e00\u4e2a\u5355\u8bcd hi,\u7136\u540e\u662f\u4efb\u610f\u4e2a\u4efb\u610f\u5b57\u7b26(\u4f46\u4e0d\u80fd\u662f\u6362\u884c)\uff0c\u6700\u540e\u662fLucy\u8fd9\u4e2a\u5355\u8bcd<\/span>\u3002<\/p>\n<p class=\"note\">\u6362\u884c\u7b26\u5c31\u662f<code>\\n<\/code>,ASCII\u7f16\u7801\u4e3a10(\u5341\u516d\u8fdb\u52360x0A)\u7684\u5b57\u7b26\u3002<\/p>\n<p>\u5982\u679c\u540c\u65f6\u4f7f\u7528\u5176\u5b83\u5143\u5b57\u7b26\uff0c\u6211\u4eec\u5c31\u80fd\u6784\u9020\u51fa\u529f\u80fd\u66f4\u5f3a\u5927\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u6bd4\u5982\u4e0b\u9762\u8fd9\u4e2a\u4f8b\u5b50\uff1a<\/p>\n<p><code><span class=\"regex\">0\\d\\d-\\d\\d\\d\\d\\d\\d\\d\\d<\/span><\/code>\u5339\u914d\u8fd9\u6837\u7684\u5b57\u7b26\u4e32\uff1a<span class=\"desc\">\u4ee50\u5f00\u5934\uff0c\u7136\u540e\u662f\u4e24\u4e2a\u6570\u5b57\uff0c\u7136\u540e\u662f\u4e00\u4e2a\u8fde\u5b57\u53f7\u201c-\u201d\uff0c\u6700\u540e\u662f8\u4e2a\u6570\u5b57<\/span>(\u4e5f\u5c31\u662f\u4e2d\u56fd\u7684\u7535\u8bdd\u53f7\u7801\u3002\u5f53\u7136\uff0c\u8fd9\u4e2a\u4f8b\u5b50\u53ea \u80fd\u5339\u914d\u533a\u53f7\u4e3a3\u4f4d\u7684\u60c5\u5f62)\u3002<\/p>\n<p>\u8fd9\u91cc\u7684<code><span class=\"part\">\\d<\/span><\/code>\u662f\u4e2a\u65b0\u7684\u5143\u5b57\u7b26\uff0c\u5339\u914d<span class=\"desc\">\u4e00\u4f4d\u6570\u5b57 (0\uff0c\u62161\uff0c\u62162\uff0c\u6216\u2026\u2026)<\/span>\u3002<span class=\"part\">&#8211;<\/span>\u4e0d\u662f\u5143\u5b57\u7b26\uff0c\u53ea\u5339\u914d\u5b83\u672c\u8eab\u2014\u2014\u8fde\u5b57\u7b26(\u6216\u8005\u51cf\u53f7\uff0c\u6216 \u8005\u4e2d\u6a2a\u7ebf\uff0c\u6216\u8005\u968f\u4f60\u600e\u4e48\u79f0\u547c\u5b83)\u3002<\/p>\n<p>\u4e3a\u4e86\u907f\u514d\u90a3\u4e48\u591a\u70e6\u4eba\u7684\u91cd\u590d\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u8fd9\u6837\u5199\u8fd9\u4e2a\u8868\u8fbe\u5f0f\uff1a<code><span class=\"regex\">0\\d{2}-\\d{8}<\/span><\/code>\u3002 \u8fd9\u91cc<span class=\"part\">\\d<\/span>\u540e\u9762\u7684<span class=\"part\">{2}<\/span>(<span class=\"part\">{8}<\/span>)\u7684\u610f\u601d\u662f\u524d\u9762<span class=\"part\">\\d<\/span><span class=\"desc\">\u5fc5\u987b\u8fde\u7eed\u91cd\u590d\u5339\u914d2\u6b21(8\u6b21)<\/span>\u3002<\/p>\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u6d4b\u8bd5\u6b63\u5219\u8868\u8fbe\u5f0f<\/h1>\n<p>\u6211\u5e38\u7528\u7684<a href=\"https:\/\/tool.oschina.net\/regex\/#\">\u5728\u7ebf\u6b63\u5219\u8868\u8fbe\u5f0f\u6d4b\u8bd5\u5de5\u5177<\/a>\u3002<\/p>\n<p>\u53ef\u7528\u7684\u6d4b\u8bd5\u5de5\u5177:<\/p>\n<p><a href=\"http:\/\/www.regexbuddy.com\/\">RegexBuddy<\/a><br \/><a href=\"http:\/\/regexpal.com\/\">Javascript\u6b63\u5219\u8868\u8fbe\u5f0f\u5728\u7ebf\u6d4b\u8bd5\u5de5\u5177<\/a><\/p>\n<p>\u5982\u679c\u4f60\u4e0d\u89c9\u5f97\u6b63\u5219\u8868\u8fbe\u5f0f\u5f88\u96be\u8bfb\u5199\u7684\u8bdd\uff0c\u8981\u4e48\u4f60\u662f\u4e00\u4e2a\u5929\u624d\uff0c\u8981\u4e48\uff0c\u4f60\u4e0d\u662f\u5730\u7403\u4eba\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u8bed\u6cd5\u5f88\u4ee4\u4eba\u5934\u75bc\uff0c\u5373\u4f7f\u5bf9\u7ecf\u5e38\u4f7f\u7528\u5b83\u7684\u4eba\u6765\u8bf4\u4e5f\u662f \u5982\u6b64\u3002\u7531\u4e8e\u96be\u4e8e\u8bfb\u5199\uff0c\u5bb9\u6613\u51fa\u9519\uff0c\u6240\u4ee5\u627e\u4e00\u79cd\u5de5\u5177\u5bf9\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u6d4b\u8bd5\u662f\u5f88\u6709\u5fc5\u8981\u7684\u3002<\/p>\n<p>\u4e0d\u540c\u7684\u73af\u5883\u4e0b\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u4e00\u4e9b\u7ec6\u8282\u662f\u4e0d\u76f8\u540c\u7684\uff0c\u539f\u6559\u7a0b\u4ecb\u7ecd\u7684\u662f\u5fae\u8f6f .Net Framework 2.0\u4e0b\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u884c\u4e3a\uff0c\u6211\u4f1a\u5c06python\u4e0b\u7684\u5177\u4f53\u7ec6\u8282\u4e5f\u8fdb\u884c\u4ecb\u7ecd\u3002<\/p>\n\n\n\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u5143\u5b57\u7b26<\/h1>\n<p>\u73b0\u5728\u4f60\u5df2\u7ecf\u77e5\u9053\u51e0\u4e2a\u5f88\u6709\u7528\u7684\u5143\u5b57\u7b26\u4e86\uff0c\u5982<code>\\b<\/code>\u3001<code>.<\/code>\u3001<code>*<\/code>\uff0c\u8fd8\u6709<code>\\d<\/code>\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u91cc\u8fd8\u6709\u66f4\u591a\u7684\u5143\u5b57\u7b26\uff0c\u6bd4\u5982<code>\\s<\/code>\u5339\u914d\u4efb\u610f\u7684\u7a7a\u767d \u7b26\uff0c\u5305\u62ec\u7a7a\u683c\uff0c\u5236\u8868\u7b26(Tab)\uff0c\u6362\u884c\u7b26\uff0c\u4e2d\u6587\u5168\u89d2\u7a7a\u683c\u7b49\u3002<code>\\w<\/code>\u5339\u914d\u5b57\u6bcd\u6216\u6570\u5b57\u6216\u4e0b\u5212\u7ebf\u6216\u6c49\u5b57\u7b49\u3002<\/p>\n<p>\u5bf9\u4e2d\u6587\/\u6c49\u5b57\u7684\u7279\u6b8a\u5904\u7406\u662f\u7531.Net\u63d0\u4f9b\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u5f15\u64ce\u652f\u6301\u7684\uff0c\u5176\u5b83\u73af\u5883\u4e0b\u7684\u5177\u4f53\u60c5\u51b5\u8bf7\u67e5\u770b \u76f8\u5173\u6587\u6863\u3002<\/p>\n<p>\u4e0b\u9762\u6765\u770b\u770b\u66f4\u591a\u7684\u4f8b\u5b50\uff1a<\/p>\n<p><code>\\ba\\w*\\b<\/code>\u5339\u914d\u4ee5\u5b57\u6bcda\u5f00\u5934\u7684\u5355\u8bcd\u2014\u2014\u5148\u662f\u67d0\u4e2a\u5355\u8bcd\u5f00\u59cb\u5904(\\b)\uff0c\u7136\u540e\u662f\u5b57 \u6bcda,\u7136\u540e\u662f\u4efb\u610f\u6570\u91cf\u7684\u5b57\u6bcd\u6216\u6570\u5b57(\\w*)\uff0c \u6700\u540e\u662f\u5355\u8bcd\u7ed3\u675f\u5904(\\b)\u3002<\/p>\n<p>\u597d\u5427\uff0c\u73b0\u5728\u6211\u4eec\u8bf4\u8bf4\u6b63\u5219\u8868\u8fbe\u5f0f\u91cc\u7684\u5355\u8bcd\u662f\u4ec0\u4e48\u610f\u601d\u5427\uff1a\u5c31\u662f\u4e0d\u5c11\u4e8e\u4e00\u4e2a\u7684\u8fde\u7eed\u7684\\w\u3002\u4e0d\u9519\uff0c\u8fd9\u4e0e\u5b66\u4e60\u82f1\u6587\u65f6\u8981\u80cc\u7684\u6210\u5343\u4e0a\u4e07\u4e2a\u540c\u540d\u7684\u4e1c\u897f\u7684\u786e\u5173\u7cfb\u4e0d\u5927 \ud83d\ude42<\/p>\n<p><code>\\d+<\/code>\u5339\u914d1\u4e2a\u6216\u66f4\u591a\u8fde\u7eed\u7684\u6570\u5b57\u3002 \u8fd9\u91cc\u7684+\u662f\u548c*\u7c7b\u4f3c\u7684\u5143\u5b57\u7b26\uff0c\u4e0d\u540c\u7684\u662f<strong>*\u5339\u914d\u91cd\u590d\u4efb\u610f\u6b21(\u53ef\u80fd\u662f0\u6b21)\uff0c\u800c+\u5219\u5339\u914d\u91cd\u590d1\u6b21\u6216\u66f4\u591a\u6b21<\/strong>\u3002<\/p>\n<p><code>\\b\\w{6}\\b<\/code> \u5339\u914d\u521a\u597d6\u4e2a\u5b57\u7b26\u7684 \u5355\u8bcd\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u5e38\u7528\u7684\u5143\u5b57\u7b26<\/p>\n<table style=\"border-collapse: collapse; width: 75.5172%; height: 184px;\">\n<tbody>\n<tr style=\"height: 23px;\">\n<td style=\"width: 25.6897%; height: 23px; text-align: left;\">\u4ee3\u7801<\/td>\n<td style=\"width: 50%; height: 23px; text-align: left;\">\u8bf4\u660e<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 25.6897%; height: 23px; text-align: left;\">.<\/td>\n<td style=\"width: 50%; height: 23px; text-align: left;\">\u5339\u914d\u9664\u6362\u884c\u7b26\u4ee5\u5916\u7684\u4efb\u610f\u5b57\u7b26<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 25.6897%; height: 23px; text-align: left;\">\\d<\/td>\n<td style=\"width: 50%; height: 23px; text-align: left;\">\u5339\u914d\u6570\u5b57<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 25.6897%; height: 23px; text-align: left;\">\\w<\/td>\n<td style=\"width: 50%; height: 23px; text-align: left;\">\u5339\u914d\u5b57\u6bcd\u6216\u6570\u5b57\u6216\u4e0b\u5212\u7ebf\u6216\u6c49\u5b57<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 25.6897%; height: 23px; text-align: left;\">\\b<\/td>\n<td style=\"width: 50%; height: 23px; text-align: left;\">\u5339\u914d\u5355\u8bcd\u7684\u5f00\u59cb\u6216\u7ed3\u675f<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 25.6897%; height: 23px; text-align: left;\">\\s<\/td>\n<td style=\"width: 50%; height: 23px; text-align: left;\">\u5339\u914d\u4efb\u610f\u7684\u7a7a\u767d\u7b26<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 25.6897%; height: 23px; text-align: left;\">^<\/td>\n<td style=\"width: 50%; height: 23px; text-align: left;\">\u5339\u914d\u5b57\u7b26\u4e32\u7684\u5f00\u59cb<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 25.6897%; height: 23px; text-align: left;\">$<\/td>\n<td style=\"width: 50%; height: 23px; text-align: left;\">\u5339\u914d\u5b57\u7b26\u4e32\u7684\u7ed3\u675f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6b63\u5219\u8868\u8fbe\u5f0f\u5f15\u64ce\u901a\u5e38\u4f1a\u63d0\u4f9b\u4e00\u4e2a\u201c\u6d4b\u8bd5\u6307\u5b9a\u7684\u5b57\u7b26\u4e32\u662f\u5426\u5339\u914d\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u201d\u7684\u65b9\u6cd5\uff0c\u5982JavaScript\u91cc\u7684 RegExp.test()\u65b9\u6cd5\u6216.NET\u91cc\u7684Regex.IsMatch()\u65b9\u6cd5\u3002\u8fd9\u91cc\u7684\u5339\u914d\u662f\u6307\u662f\u5b57\u7b26\u4e32\u91cc\u6709\u6ca1\u6709\u7b26\u5408\u8868\u8fbe\u5f0f\u89c4\u5219\u7684\u90e8\u5206\u3002<\/p>\n<p>\u5982\u679c\u4e0d\u4f7f\u7528^\u548c$\u7684\u8bdd\uff0c\u5bf9\u4e8e\\d{5,12}\u800c\u8a00\uff0c\u4f7f\u7528\u8fd9\u6837\u7684\u65b9\u6cd5\u5c31\u53ea\u80fd\u4fdd\u8bc1\u5b57\u7b26\u4e32\u91cc\u5305\u542b5\u5230 12\u8fde\u7eed\u4f4d\u6570\u5b57\uff0c\u800c\u4e0d\u662f\u6574\u4e2a\u5b57\u7b26\u4e32\u5c31\u662f5\u523012\u4f4d\u6570\u5b57\u3002<\/p>\n<p>\u5143\u5b57\u7b26<code>^<\/code>\uff08\u548c\u6570\u5b576\u5728\u540c\u4e00\u4e2a\u952e\u4f4d\u4e0a\u7684\u7b26\u53f7\uff09\u548c<code>$<\/code>\u90fd \u5339\u914d\u4e00\u4e2a\u4f4d\u7f6e\uff0c\u8fd9\u548c\\b\u6709\u70b9\u7c7b\u4f3c\u3002<\/p>\n<p><strong>^\u5339\u914d\u8981\u7528\u6765\u67e5\u627e\u7684\u5b57\u7b26\u4e32\u7684\u5f00\u5934\uff0c$\u5339\u914d\u7ed3\u5c3e\u3002<\/strong><\/p>\n<p>\u8fd9\u4e24\u4e2a\u4ee3\u7801\u5728\u9a8c\u8bc1\u8f93\u5165\u7684\u5185\u5bb9\u65f6\u975e\u5e38\u6709\u7528\uff0c\u6bd4\u5982\u4e00\u4e2a\u7f51\u7ad9\u5982\u679c \u8981\u6c42\u4f60\u586b\u5199\u7684QQ\u53f7\u5fc5\u987b\u4e3a5\u4f4d\u523012\u4f4d\u6570\u5b57\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\uff1a<code>^\\d{5,12}$<\/code>\u3002<\/p>\n<p>\u8fd9\u91cc\u7684{5,12}\u548c\u524d\u9762\u4ecb\u7ecd\u8fc7\u7684{2}\u662f \u7c7b\u4f3c\u7684\uff0c\u53ea\u4e0d\u8fc7{2}\u5339\u914d\u53ea\u80fd\u4e0d\u591a\u4e0d\u5c11\u91cd\u590d2\u6b21\uff0c{5,12}\u5219\u662f\u91cd\u590d\u7684\u6b21\u6570\u4e0d\u80fd\u5c11\u4e8e5\u6b21\uff0c\u4e0d\u80fd\u591a\u4e8e12\u6b21\uff0c \u5426\u5219\u90fd\u4e0d\u5339\u914d\u3002<\/p>\n<p>\u56e0\u4e3a\u4f7f\u7528\u4e86^\u548c$\uff0c\u6240\u4ee5\u8f93\u5165 \u7684\u6574\u4e2a\u5b57\u7b26\u4e32\u90fd\u8981\u7528\u6765\u548c\\d{5,12}\u6765\u5339\u914d\uff0c\u4e5f\u5c31\u662f\u8bf4\u6574\u4e2a\u8f93\u5165\u5fc5\u987b\u662f5\u523012\u4e2a\u6570\u5b57\uff0c\u56e0\u6b64\u5982\u679c\u8f93\u5165\u7684QQ\u53f7\u80fd\u5339\u914d\u8fd9\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u8bdd\uff0c\u90a3\u5c31\u7b26\u5408\u8981\u6c42\u4e86\u3002<\/p>\n<p>\u548c\u5ffd\u7565\u5927\u5c0f\u5199\u7684\u9009\u9879\u7c7b\u4f3c\uff0c\u6709\u4e9b\u6b63\u5219\u8868\u8fbe\u5f0f\u5904\u7406\u5de5\u5177\u8fd8\u6709\u4e00\u4e2a\u5904\u7406\u591a\u884c\u7684\u9009\u9879\u3002\u5982\u679c\u9009\u4e2d\u4e86\u8fd9\u4e2a\u9009\u9879\uff0c^\u548c$\u7684\u610f\u4e49\u5c31\u53d8\u6210\u4e86\u5339\u914d\u884c\u7684\u5f00\u59cb\u5904\u548c\u7ed3\u675f\u5904\u3002<\/p>\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u5b57\u7b26\u8f6c\u4e49<\/h1>\n<p>\u5982\u679c\u4f60\u60f3\u67e5\u627e\u5143\u5b57\u7b26\u672c\u8eab\u7684\u8bdd\uff0c\u6bd4\u5982\u4f60\u67e5\u627e<code>.<\/code>,\u6216\u8005<code>*<\/code>,\u5c31\u51fa\u73b0\u4e86\u95ee\u9898\uff1a\u4f60\u6ca1\u529e\u6cd5\u6307\u5b9a\u5b83\u4eec\uff0c\u56e0\u4e3a\u5b83\u4eec\u4f1a\u88ab\u89e3\u91ca\u6210\u522b\u7684\u610f\u601d\u3002\u8fd9\u65f6\u4f60\u5c31\u5f97\u4f7f\u7528<code>\\<\/code>\u6765\u53d6\u6d88\u8fd9\u4e9b\u5b57\u7b26\u7684\u7279\u6b8a\u610f\u4e49\u3002\u56e0\u6b64\uff0c\u4f60\u5e94\u8be5\u4f7f\u7528<code>\\.<\/code>\u548c<code>\\*<\/code>\u3002\u5f53\u7136\uff0c\u8981\u67e5\u627e\\\u672c\u8eab\uff0c\u4f60\u4e5f\u5f97\u7528<code>\\\\<\/code>.<\/p>\n<p>\u4f8b\u5982\uff1adeerchao\\.net\u5339\u914ddeerchao.net\uff0cC:\\\\Windows\u5339\u914dC:\\Windows\u3002<\/p>\n<h1>\u00a0<\/h1>\n<h1 id=\"repeat\" style=\"text-align: center;\">\u91cd\u590d<\/h1>\n<p>\u4f60\u5df2\u7ecf\u770b\u8fc7\u4e86\u524d\u9762\u7684<code><span class=\"code\">*<\/span><\/code>,<code><span class=\"code\">+<\/span><\/code>,<code><span class=\"code\">{2}<\/span><\/code>,<code><span class=\"code\">{5,12}<\/span><\/code>\u8fd9\u51e0\u4e2a\u5339\u914d\u91cd\u590d\u7684\u65b9\u5f0f\u4e86\u3002\u4e0b\u9762\u662f \u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u6240\u6709\u7684\u9650\u5b9a\u7b26(\u6307\u5b9a\u6570\u91cf\u7684\u4ee3\u7801\uff0c\u4f8b\u5982*,{5,12}\u7b49)\uff1a<\/p>\n<p>\u5e38\u7528\u7684\u9650\u5b9a\u7b26<\/p>\n<table style=\"border-collapse: collapse; width: 73.2759%; height: 161px;\">\n<tbody>\n<tr style=\"height: 23px;\">\n<td style=\"width: 25.5172%; height: 23px; text-align: left;\">\u4ee3\u7801<\/td>\n<td style=\"width: 47.7587%; height: 23px; text-align: left;\">\u8bf4\u660e<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 25.5172%; height: 23px; text-align: left;\">*<\/td>\n<td style=\"width: 47.7587%; height: 23px; text-align: left;\">\u91cd\u590d\u96f6\u6b21\u6216\u66f4\u591a\u6b21<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 25.5172%; height: 23px; text-align: left;\">+<\/td>\n<td style=\"width: 47.7587%; height: 23px; text-align: left;\">\u91cd\u590d\u4e00\u6b21\u6216\u66f4\u591a\u6b21<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 25.5172%; height: 23px; text-align: left;\">\uff1f<\/td>\n<td style=\"width: 47.7587%; height: 23px; text-align: left;\">\u91cd\u590d\u96f6\u6b21\u6216\u4e00\u6b21<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 25.5172%; height: 23px; text-align: left;\">{n}<\/td>\n<td style=\"width: 47.7587%; height: 23px; text-align: left;\">\u91cd\u590dn\u6b21<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 25.5172%; height: 23px; text-align: left;\">{n,m}<\/td>\n<td style=\"width: 47.7587%; height: 23px; text-align: left;\">\u91cd\u590dn\u6b21\u5230m\u6b21<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 25.5172%; height: 23px; text-align: left;\">{n,}<\/td>\n<td style=\"width: 47.7587%; height: 23px; text-align: left;\">\u91cd\u590dn\u6b21\u6216\u66f4\u591a\u6b21<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0b\u9762\u662f\u4e00\u4e9b\u4f7f\u7528\u91cd\u590d\u7684\u4f8b\u5b50\uff1a<\/p>\n<p><code>Windows\\d+<\/code>\u5339\u914dWindows \u540e\u9762\u8ddf1\u4e2a\u6216\u66f4\u591a\u6570\u5b57<\/p>\n<p><code>^\\w+<\/code>\u5339\u914d\u4e00\u884c\u7684\u7b2c\u4e00\u4e2a\u5355\u8bcd(\u6216\u6574\u4e2a\u5b57 \u7b26\u4e32\u7684\u7b2c\u4e00\u4e2a\u5355\u8bcd\uff0c\u5177\u4f53\u5339\u914d\u54ea\u4e2a\u610f\u601d\u5f97\u770b\u9009\u9879\u8bbe\u7f6e)<\/p>\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u5b57\u7b26\u7c7b<\/h1>\n<p>\u8981\u60f3\u67e5\u627e\u6570\u5b57\uff0c\u5b57\u6bcd\u6216\u6570\u5b57\uff0c\u7a7a\u767d\u662f\u5f88\u7b80\u5355\u7684\uff0c\u56e0\u4e3a\u5df2\u7ecf\u6709\u4e86\u5bf9\u5e94\u8fd9\u4e9b\u5b57\u7b26\u96c6\u5408\u7684\u5143\u5b57\u7b26\uff0c\u4f46\u662f\u5982\u679c\u4f60\u60f3\u5339\u914d\u6ca1\u6709\u9884\u5b9a\u4e49\u5143\u5b57\u7b26\u7684\u5b57\u7b26\u96c6\u5408(\u6bd4\u5982\u5143 \u97f3\u5b57\u6bcda,e,i,o,u),\u5e94\u8be5\u600e\u4e48\u529e\uff1f<\/p>\n<p>\u5f88\u7b80\u5355\uff0c\u4f60\u53ea\u9700\u8981\u5728\u65b9\u62ec\u53f7\u91cc\u5217\u51fa\u5b83\u4eec\u5c31\u884c\u4e86\uff0c\u50cf<code>[aeiou]<\/code>\u5c31\u5339\u914d\u4efb\u4f55\u4e00\u4e2a\u82f1\u6587\u5143\u97f3\u5b57\u6bcd\uff0c<code>[.?!]<\/code>\u5339\u914d\u6807\u70b9\u7b26\u53f7(.\u6216?\u6216!)\u3002<\/p>\n<p>\u6211\u4eec\u4e5f\u53ef\u4ee5\u8f7b\u677e\u5730\u6307\u5b9a\u4e00\u4e2a\u5b57\u7b26\u8303\u56f4\uff0c\u50cf<code>[0-9]<\/code>\u4ee3 \u8868\u7684\u542b\u610f\u4e0e\\d\u5c31\u662f\u5b8c\u5168\u4e00\u81f4\u7684\uff1a\u4e00\u4f4d\u6570\u5b57\uff1b \u540c\u7406<code>[a-z0-9A-Z_]<\/code>\u4e5f\u5b8c\u5168\u7b49\u540c\u4e8e<code>\\w<\/code>\uff08\u5982 \u679c\u53ea\u8003\u8651\u82f1\u6587\u7684\u8bdd\uff09\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u66f4\u590d\u6742\u7684\u8868\u8fbe\u5f0f\uff1a<code>\\(?0\\d{2}[) -]?\\d{8}<\/code>\u3002<\/p>\n<p><code>(<\/code>\u548c<code>)<\/code>\u4e5f\u662f\u5143\u5b57\u7b26\uff0c\u540e\u9762\u7684\u5206\u7ec4\u8282\u91cc\u4f1a\u63d0 \u5230\uff0c\u6240\u4ee5\u5728\u8fd9\u91cc\u9700\u8981\u4f7f\u7528\u8f6c\u4e49\u3002<\/p>\n<p>\u8fd9\u4e2a\u8868\u8fbe\u5f0f\u53ef\u4ee5\u5339\u914d\u51e0\u79cd\u683c\u5f0f\u7684\u7535\u8bdd\u53f7\u7801\uff0c\u50cf(010)88886666\uff0c\u6216022-22334455\uff0c \u621602912345678\u7b49\u3002\u6211\u4eec\u5bf9\u5b83\u8fdb\u884c\u4e00\u4e9b\u5206\u6790\u5427\uff1a\u9996\u5148\u662f\u4e00\u4e2a\u8f6c\u4e49\u5b57\u7b26\\(,\u5b83\u80fd\u51fa\u73b00\u6b21\u62161\u6b21(?),\u7136\u540e\u662f\u4e00\u4e2a0\uff0c\u540e\u9762\u8ddf\u77402\u4e2a\u6570\u5b57(\\d{2})\uff0c\u7136\u540e\u662f)\u6216-\u6216\u7a7a\u683c\u4e2d \u7684\u4e00\u4e2a\uff0c\u5b83\u51fa\u73b01\u6b21\u6216\u4e0d\u51fa\u73b0(?)\uff0c\u6700\u540e\u662f8\u4e2a\u6570\u5b57(\\d{8})\u3002<\/p>\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u5206\u679d\u6761\u4ef6<\/h1>\n<p>\u4e0d\u5e78\u7684\u662f\uff0c\u521a\u624d\u90a3\u4e2a\u8868\u8fbe\u5f0f\u4e5f\u80fd\u5339\u914d010)12345678\u6216(022-87654321\u8fd9\u6837\u7684\u201c\u4e0d\u6b63\u786e\u201d\u7684\u683c\u5f0f\u3002\u8981\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u4eec\u9700\u8981\u7528\u5230\u5206\u679d\u6761\u4ef6\u3002<\/p>\n<p>\u6b63\u5219\u8868\u8fbe\u5f0f\u91cc\u7684\u5206\u679d\u6761\u4ef6\u6307\u7684\u662f\u6709\u51e0\u79cd\u89c4\u5219\uff0c\u5982 \u679c\u6ee1\u8db3\u5176\u4e2d\u4efb\u610f\u4e00\u79cd\u89c4\u5219\u90fd\u5e94\u8be5\u5f53\u6210\u5339\u914d\uff0c\u5177\u4f53\u65b9\u6cd5\u662f\u7528|\u628a\u4e0d\u540c\u7684\u89c4\u5219\u5206\u9694\u5f00\u3002\u542c\u4e0d\u660e\u767d\uff1f\u6ca1\u5173\u7cfb\uff0c\u770b \u4f8b\u5b50\uff1a<\/p>\n<p><code>0\\d{2}-\\d{8}|0\\d{3}-\\d{7}<\/code>\u8fd9\u4e2a\u8868\u8fbe\u5f0f\u80fd\u5339\u914d\u4e24\u79cd\u4ee5\u8fde\u5b57\u53f7\u5206\u9694\u7684\u7535\u8bdd\u53f7\u7801\uff1a\u4e00\u79cd\u662f\u4e09\u4f4d\u533a\u53f7\uff0c8\u4f4d\u672c\u5730\u53f7(\u5982010-12345678)\uff0c\u4e00\u79cd\u662f4\u4f4d\u533a\u53f7\uff0c7\u4f4d\u672c\u5730\u53f7 (0376-2233445)\u3002<\/p>\n<p><code>\\(0\\d{2}\\)[- ]?\\d{8}|0\\d{2}[- ]?\\d{8}<\/code>\u8fd9 \u4e2a\u8868\u8fbe\u5f0f\u5339\u914d3\u4f4d\u533a\u53f7\u7684\u7535\u8bdd\u53f7\u7801\uff0c\u5176\u4e2d\u533a\u53f7\u53ef\u4ee5\u7528\u5c0f\u62ec\u53f7\u62ec\u8d77\u6765\uff0c\u4e5f\u53ef\u4ee5\u4e0d\u7528\uff0c\u533a\u53f7\u4e0e\u672c\u5730\u53f7\u95f4\u53ef\u4ee5\u7528\u8fde\u5b57\u53f7\u6216\u7a7a\u683c\u95f4 \u9694\uff0c\u4e5f\u53ef\u4ee5\u6ca1\u6709\u95f4\u9694\u3002\u4f60\u53ef\u4ee5\u8bd5\u8bd5\u7528\u5206\u679d\u6761\u4ef6\u628a\u8fd9\u4e2a\u8868\u8fbe\u5f0f\u6269\u5c55\u6210\u4e5f\u652f\u63014\u4f4d\u533a\u53f7\u7684\u3002<\/p>\n<p><code>\\d{5}-\\d{4}|\\d{5}<\/code>\u8fd9\u4e2a\u8868\u8fbe\u5f0f\u7528\u4e8e\u5339\u914d\u7f8e\u56fd\u7684\u90ae\u653f\u7f16\u7801\u3002\u7f8e\u56fd\u90ae\u7f16 \u7684\u89c4\u5219\u662f5\u4f4d\u6570\u5b57\uff0c\u6216\u8005\u7528\u8fde\u5b57\u53f7\u95f4\u9694\u76849\u4f4d\u6570\u5b57\u3002\u4e4b\u6240\u4ee5\u8981\u7ed9\u51fa\u8fd9\u4e2a\u4f8b\u5b50\u662f\u56e0\u4e3a\u5b83\u80fd\u8bf4\u660e\u4e00\u4e2a\u95ee\u9898\uff1a\u4f7f\u7528\u5206\u679d\u6761\u4ef6\u65f6\uff0c\u8981\u6ce8\u610f\u5404\u4e2a\u6761\u4ef6\u7684\u987a\u5e8f\u3002<\/p>\n<p>\u5982\u679c\u4f60\u628a\u5b83\u6539\u6210<code>\\d{5}|\\d{5}-\\d{4}<\/code>\u7684\u8bdd\uff0c\u90a3\u4e48\u5c31\u53ea\u4f1a\u5339\u914d5\u4f4d\u7684\u90ae\u7f16(\u4ee5\u53ca9\u4f4d\u90ae \u7f16\u7684\u524d5\u4f4d)\u3002<\/p>\n<p>\u539f\u56e0\u662f\u5339\u914d\u5206\u679d\u6761\u4ef6\u65f6\uff0c\u5c06\u4f1a\u4ece\u5de6\u5230\u53f3\u5730\u6d4b\u8bd5\u6bcf\u4e2a\u6761\u4ef6\uff0c\u5982\u679c\u6ee1\u8db3\u4e86\u67d0\u4e2a\u5206\u679d\u7684\u8bdd\uff0c\u5c31\u4e0d\u4f1a\u53bb\u518d\u7ba1\u5176\u5b83\u7684\u6761\u4ef6\u4e86\u3002<\/p>\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u5206\u7ec4<\/h1>\n<p>\u6211\u4eec\u5df2\u7ecf\u63d0\u5230\u4e86\u600e\u4e48\u91cd\u590d\u5355\u4e2a\u5b57\u7b26\uff08\u76f4\u63a5\u5728\u5b57\u7b26\u540e\u9762\u52a0\u4e0a\u9650\u5b9a\u7b26\u5c31\u884c\u4e86\uff09\uff1b\u4f46\u5982\u679c\u60f3\u8981\u91cd\u590d\u591a\u4e2a\u5b57\u7b26\u53c8\u8be5\u600e\u4e48\u529e\uff1f<\/p>\n<p>\u4f60\u53ef\u4ee5\u7528\u5c0f\u62ec\u53f7\u6765\u6307\u5b9a\u5b50\u8868\u8fbe\u5f0f(\u4e5f\u53eb\u505a\u5206\u7ec4)\uff0c\u7136\u540e\u4f60\u5c31\u53ef\u4ee5\u6307\u5b9a\u8fd9\u4e2a\u5b50\u8868\u8fbe \u5f0f\u7684\u91cd\u590d\u6b21\u6570\u4e86\uff0c\u4f60\u4e5f\u53ef\u4ee5\u5bf9\u5b50\u8868\u8fbe\u5f0f\u8fdb\u884c\u5176\u5b83\u4e00\u4e9b\u64cd\u4f5c(\u540e\u9762\u4f1a\u6709\u4ecb\u7ecd)\u3002<\/p>\n<p><code>(\\d{1,3}\\.){3}\\d{1,3}<\/code>\u662f\u4e00\u4e2a\u7b80\u5355\u7684IP\u5730\u5740\u5339\u914d\u8868\u8fbe\u5f0f\u3002<\/p>\n<p>\u8981\u7406\u89e3\u8fd9\u4e2a\u8868\u8fbe\u5f0f\uff0c\u8bf7\u6309\u4e0b\u5217\u987a\u5e8f\u5206\u6790\u5b83\uff1a\\d{1,3}\u5339 \u914d1\u52303\u4f4d\u7684\u6570\u5b57\uff0c(\\d{1,3}\\.){3}\u5339 \u914d\u4e09\u4f4d\u6570\u5b57\u52a0\u4e0a\u4e00\u4e2a\u82f1\u6587\u53e5\u53f7(\u8fd9\u4e2a\u6574\u4f53\u4e5f\u5c31\u662f\u8fd9\u4e2a\u5206\u7ec4)\u91cd \u590d3\u6b21\uff0c\u6700\u540e\u518d\u52a0\u4e0a\u4e00\u4e2a\u4e00\u5230\u4e09\u4f4d\u7684\u6570\u5b57(\\d{1,3})\u3002<\/p>\n<p>IP\u5730\u5740\u4e2d\u6bcf\u4e2a\u6570\u5b57\u90fd\u4e0d\u80fd\u5927\u4e8e255\u3002<\/p>\n<p>\u4e0d\u5e78\u7684\u662f\uff0c\u5b83\u4e5f\u5c06\u5339\u914d256.300.888.999\u8fd9\u79cd\u4e0d\u53ef\u80fd\u5b58\u5728\u7684IP\u5730 \u5740\u3002<\/p>\n<p>\u5982\u679c\u80fd\u4f7f\u7528\u7b97\u672f\u6bd4\u8f83\u7684\u8bdd\uff0c\u6216\u8bb8\u80fd\u7b80\u5355\u5730\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u4f46\u662f\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u5e76\u4e0d\u63d0\u4f9b\u5173\u4e8e\u6570\u5b66\u7684\u4efb\u4f55\u529f\u80fd\uff0c\u6240\u4ee5\u53ea\u80fd\u4f7f\u7528\u5197\u957f\u7684\u5206\u7ec4\uff0c\u9009\u62e9\uff0c\u5b57\u7b26\u7c7b\u6765\u63cf\u8ff0\u4e00\u4e2a \u6b63\u786e\u7684IP\u5730\u5740\uff1a<code>((2[0-4]\\d|25[0-5]|[01]?\\d\\d?)\\.){3}(2[0-4]\\d|25[0-5]|[01]?\\d\\d?)<\/code>\u3002<\/p>\n<p>\u7406\u89e3\u8fd9\u4e2a\u8868\u8fbe\u5f0f\u7684\u5173\u952e\u662f\u7406\u89e32[0-4]\\d|25[0-5]|[01]?\\d\\d?\uff0c \u8fd9\u91cc\u6211\u5c31\u4e0d\u7ec6\u8bf4\u4e86\uff0c\u4f60\u81ea\u5df1\u5e94\u8be5\u80fd\u5206\u6790\u5f97\u51fa\u6765\u5b83\u7684\u610f\u4e49\u3002<\/p>\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u53cd\u4e49<\/h1>\n<p>\u6709\u65f6\u9700\u8981\u67e5\u627e\u4e0d\u5c5e\u4e8e\u67d0\u4e2a\u80fd\u7b80\u5355\u5b9a\u4e49\u7684\u5b57\u7b26\u7c7b\u7684\u5b57\u7b26\u3002\u6bd4\u5982\u60f3\u67e5\u627e\u9664\u4e86\u6570\u5b57\u4ee5\u5916\uff0c\u5176\u5b83\u4efb\u610f\u5b57\u7b26\u90fd\u884c\u7684\u60c5\u51b5\uff0c\u8fd9\u65f6\u9700\u8981\u7528\u5230\u53cd\u4e49\uff1a<\/p>\n<p>\u5e38\u7528\u7684\u53cd\u4e49\u4ee3\u7801<\/p>\n<table style=\"border-collapse: collapse; width: 90.8621%;\">\n<tbody>\n<tr>\n<td style=\"width: 22.5314%; text-align: left;\">\u4ee3\u7801<\/td>\n<td style=\"width: 74.7445%; text-align: left;\">\u8bf4\u660e<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 22.5314%; text-align: left;\">\\W<\/td>\n<td style=\"width: 74.7445%; text-align: left;\">\u5339\u914d\u4efb\u610f\u4e0d\u662f\u5b57\u6bcd\uff0c\u6570\u5b57\uff0c\u4e0b\u5212\u7ebf\uff0c\u6c49\u5b57\u7684\u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 22.5314%; text-align: left;\">\\S<\/td>\n<td style=\"width: 74.7445%; text-align: left;\">\u5339\u914d\u4efb\u610f\u4e0d\u662f\u7a7a\u767d\u7b26\u7684\u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 22.5314%; text-align: left;\">\\D<\/td>\n<td style=\"width: 74.7445%; text-align: left;\">\u5339\u914d\u4efb\u610f\u975e\u6570\u5b57\u7684\u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 22.5314%; text-align: left;\">\\B<\/td>\n<td style=\"width: 74.7445%; text-align: left;\">\u5339\u914d\u4e0d\u662f\u5355\u8bcd\u5f00\u5934\u6216\u7ed3\u675f\u7684\u4f4d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 22.5314%; text-align: left;\">[^x]<\/td>\n<td style=\"width: 74.7445%; text-align: left;\">\u5339\u914d\u9664\u4e86x\u4ee5\u5916\u7684\u4efb\u610f\u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 22.5314%; text-align: left;\">[^aeiou]<\/td>\n<td style=\"width: 74.7445%; text-align: left;\">\u5339\u914d\u9664\u4e86aeiou\u4ee5\u5916\u7684\u4efb\u610f\u5b57\u7b26<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f8b\u5b50\uff1a<span class=\"regex\">\\S+<\/span>\u5339\u914d<span class=\"desc\">\u4e0d\u5305\u542b\u7a7a\u767d\u7b26\u7684\u5b57\u7b26\u4e32<\/span>\u3002<\/p>\n<p><span class=\"regex\">&lt;a[^&gt;]+&gt;<\/span>\u5339\u914d<span class=\"desc\">\u7528 \u5c16\u62ec\u53f7\u62ec\u8d77\u6765\u7684\u4ee5a\u5f00\u5934\u7684\u5b57\u7b26\u4e32<\/span>\u3002<\/p>\n<h1>\u00a0<\/h1>\n<h1 id=\"backreference\" style=\"text-align: center;\">\u540e\u5411\u5f15\u7528<\/h1>\n<p>\u4f7f\u7528\u5c0f\u62ec\u53f7\u6307\u5b9a\u4e00\u4e2a\u5b50\u8868\u8fbe\u5f0f\u540e\uff0c<strong>\u5339\u914d\u8fd9\u4e2a\u5b50\u8868\u8fbe\u5f0f\u7684\u6587\u672c<\/strong>(\u4e5f\u5c31\u662f\u6b64\u5206\u7ec4\u6355\u83b7\u7684\u5185\u5bb9)\u53ef\u4ee5\u5728\u8868\u8fbe\u5f0f\u6216\u5176\u5b83 \u7a0b\u5e8f\u4e2d\u4f5c\u8fdb\u4e00\u6b65\u7684\u5904\u7406\u3002<\/p>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u6bcf\u4e2a\u5206\u7ec4\u4f1a\u81ea\u52a8\u62e5\u6709\u4e00\u4e2a<span class=\"name\">\u7ec4\u53f7<\/span>\uff0c\u89c4\u5219\u662f\uff1a\u4ece\u5de6\u5411\u53f3\uff0c\u4ee5\u5206\u7ec4\u7684\u5de6\u62ec \u53f7\u4e3a\u6807\u5fd7\uff0c\u7b2c\u4e00\u4e2a\u51fa\u73b0\u7684\u5206\u7ec4\u7684\u7ec4\u53f7\u4e3a1\uff0c\u7b2c\u4e8c\u4e2a\u4e3a2\uff0c\u4ee5\u6b64\u7c7b\u63a8\u3002<\/p>\n<div class=\"note\">\n<p>\u5443\u2026\u2026\u5176\u5b9e,\u7ec4\u53f7\u5206\u914d\u8fd8\u4e0d\u50cf\u6211\u521a\u8bf4\u5f97\u90a3\u4e48\u7b80\u5355\uff1a<\/p>\n<ul>\n<li>\u5206\u7ec40\u5bf9\u5e94\u6574\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f<\/li>\n<li>\u5b9e\u9645\u4e0a\u7ec4\u53f7\u5206\u914d\u8fc7\u7a0b\u662f\u8981\u4ece\u5de6\u5411\u53f3\u626b\u63cf\u4e24\u904d\u7684\uff1a\u7b2c\u4e00\u904d\u53ea\u7ed9\u672a\u547d\u540d\u7ec4\u5206\u914d\uff0c\u7b2c\u4e8c\u904d\u53ea\u7ed9\u547d\u540d\u7ec4\u5206\u914d\uff0d\uff0d\u56e0\u6b64\u6240\u6709\u547d\u540d\u7ec4\u7684\u7ec4\u53f7\u90fd\u5927\u4e8e\u672a\u547d\u540d\u7684\u7ec4 \u53f7<\/li>\n<li>\u4f60\u53ef\u4ee5\u4f7f\u7528<span class=\"code\">(?:exp)<\/span>\u8fd9\u6837\u7684\u8bed\u6cd5\u6765\u5265\u593a\u4e00\u4e2a\u5206\u7ec4\u5bf9\u7ec4\u53f7\u5206\u914d\u7684\u53c2\u4e0e\u6743\uff0e<\/li>\n<\/ul>\n<\/div>\n<p><span class=\"name\">\u540e\u5411\u5f15\u7528<\/span>\u7528\u4e8e\u91cd\u590d\u641c\u7d22\u524d\u9762\u67d0\u4e2a\u5206\u7ec4\u5339\u914d\u7684\u6587\u672c\u3002\u4f8b\u5982\uff0c<span class=\"part\">\\1<\/span>\u4ee3\u8868<span class=\"desc\">\u5206\u7ec41\u5339\u914d\u7684\u6587\u672c<\/span>\u3002\u96be\u4ee5\u7406\u89e3\uff1f\u8bf7\u770b\u793a\u4f8b\uff1a<\/p>\n<p><code><span class=\"regex\">\\b(\\w+)\\b\\s+\\1\\b<\/span><\/code>\u53ef\u4ee5\u7528\u6765\u5339\u914d<span class=\"desc\">\u91cd\u590d\u7684\u5355\u8bcd<\/span>\uff0c\u50cf<span class=\"string\">go go<\/span>, \u6216\u8005<span class=\"string\">kitty kitty<\/span>\u3002<\/p>\n<p>\u8fd9\u4e2a\u8868\u8fbe\u5f0f\u9996\u5148\u662f<span class=\"desc\">\u4e00\u4e2a\u5355\u8bcd<\/span>\uff0c \u4e5f\u5c31\u662f<span class=\"desc\">\u5355\u8bcd\u5f00\u59cb\u5904\u548c\u7ed3\u675f\u5904\u4e4b\u95f4\u7684\u591a\u4e8e\u4e00\u4e2a\u7684\u5b57\u6bcd\u6216\u6570\u5b57<\/span>(<span class=\"part\">\\b(\\w+)\\b<\/span>)\uff0c \u8fd9\u4e2a\u5355\u8bcd\u4f1a\u88ab\u6355\u83b7\u5230\u7f16\u53f7\u4e3a1\u7684\u5206\u7ec4\u4e2d\uff0c\u7136\u540e\u662f<span class=\"desc\">1\u4e2a\u6216\u51e0\u4e2a\u7a7a\u767d\u7b26<\/span>(<span class=\"part\">\\s+<\/span>)\uff0c\u6700\u540e\u662f<span class=\"desc\">\u5206\u7ec41\u4e2d\u6355\u83b7\u7684\u5185\u5bb9\uff08\u4e5f\u5c31\u662f\u524d\u9762\u5339\u914d\u7684\u90a3\u4e2a\u5355\u8bcd\uff09<\/span>(<span class=\"part\">\\1<\/span>)\u3002<\/p>\n<p>\u4f60\u4e5f\u53ef\u4ee5\u81ea\u5df1\u6307\u5b9a\u5b50\u8868\u8fbe\u5f0f\u7684<span class=\"name\">\u7ec4\u540d<\/span>\u3002\u8981\u6307\u5b9a\u4e00\u4e2a\u5b50\u8868\u8fbe\u5f0f\u7684\u7ec4\u540d\uff0c\u8bf7\u4f7f\u7528\u8fd9\u6837\u7684\u8bed\u6cd5\uff1a<code><span class=\"code\">(?&lt;Word&gt;\\w+)<\/span><\/code>(\u6216\u8005\u628a\u5c16\u62ec\u53f7\u6362\u6210<span class=\"code\">&#8216;<\/span>\u4e5f \u884c\uff1a<code><span class=\"code\">(?'Word'\\w+)<\/span><\/code>),\u8fd9\u6837\u5c31\u628a<span class=\"part\">\\w+<\/span>\u7684 \u7ec4\u540d\u6307\u5b9a\u4e3a<span class=\"part\">Word<\/span>\u4e86\u3002<\/p>\n<p>\u8981\u53cd\u5411\u5f15\u7528\u8fd9\u4e2a\u5206\u7ec4<span class=\"name\">\u6355\u83b7<\/span>\u7684 \u5185\u5bb9\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code><span class=\"code\">\\k&lt;Word&gt;<\/span><\/code>,\u6240\u4ee5\u4e0a\u4e00\u4e2a\u4f8b\u5b50\u4e5f\u53ef\u4ee5\u5199\u6210\u8fd9\u6837\uff1a<code><span class=\"regex\">\\b(?&lt;Word&gt;\\w+)\\b\\s+\\k&lt;Word&gt;\\b<\/span><\/code>\u3002<\/p>\n<p>\u4f7f\u7528\u5c0f\u62ec\u53f7\u7684\u65f6\u5019\uff0c\u8fd8\u6709\u5f88\u591a\u7279\u5b9a\u7528\u9014\u7684\u8bed\u6cd5\u3002\u4e0b\u9762\u5217\u51fa\u4e86\u6700\u5e38\u7528\u7684\u4e00\u4e9b\uff1a<\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 206px;\">\n<tbody>\n<tr style=\"height: 22px;\">\n<td style=\"width: 16.0919%; height: 22px; text-align: left;\">\u5206\u7c7b<\/td>\n<td style=\"width: 20.0575%; height: 22px; text-align: left;\">\u4ee3\u7801<\/td>\n<td style=\"width: 63.8505%; height: 22px; text-align: left;\">\u8bf4\u660e<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 16.0919%; height: 69px; text-align: left;\" rowspan=\"3\">\u6355\u83b7<\/td>\n<td style=\"width: 20.0575%; height: 23px; text-align: left;\">(exp)<\/td>\n<td style=\"width: 63.8505%; height: 23px; text-align: left;\">\u5339\u914dexp,\u5e76\u6355\u83b7\u6587\u672c\u5230\u81ea\u52a8\u547d\u540d\u7684\u7ec4\u91cc<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 20.0575%; height: 23px; text-align: left;\">(?&lt;name&gt;exp)<\/td>\n<td style=\"width: 63.8505%; height: 23px; text-align: left;\">\u5339\u914dexp,\u5e76\u6355\u83b7\u6587\u672c\u5230\u540d\u79f0\u4e3aname\u7684\u7ec4\u91cc\uff0c\u4e5f\u53ef\u4ee5\u5199\u6210 (?&#8217;name&#8217;exp)<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 20.0575%; height: 23px; text-align: left;\">(?:exp)<\/td>\n<td style=\"width: 63.8505%; height: 23px; text-align: left;\">\u5339\u914dexp,\u4e0d\u6355\u83b7\u5339\u914d\u7684\u6587\u672c\uff0c\u4e5f\u4e0d\u7ed9\u6b64\u5206\u7ec4\u5206\u914d\u7ec4\u53f7<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 16.0919%; height: 92px; text-align: left;\" rowspan=\"4\">\u96f6\u5bbd\u65ad\u8a00<\/td>\n<td style=\"width: 20.0575%; height: 23px; text-align: left;\">(?=exp)<\/td>\n<td style=\"width: 63.8505%; height: 23px; text-align: left;\">\u5339\u914dexp\u524d\u9762\u7684\u4f4d\u7f6e<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 20.0575%; height: 23px; text-align: left;\">(?&lt;=exp)<\/td>\n<td style=\"width: 63.8505%; height: 23px; text-align: left;\">\u5339\u914dexp\u540e\u9762\u7684\u4f4d\u7f6e<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 20.0575%; height: 23px; text-align: left;\">(?!exp)<\/td>\n<td style=\"width: 63.8505%; height: 23px; text-align: left;\">\u5339\u914d\u540e\u9762\u8ddf\u7684\u4e0d\u662fexp\u7684\u4f4d\u7f6e<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 20.0575%; height: 23px; text-align: left;\">(?&lt;!exp)<\/td>\n<td style=\"width: 63.8505%; height: 23px; text-align: left;\">\u5339\u914d\u524d\u9762\u4e0d\u662fexp\u7684\u4f4d\u7f6e<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 16.0919%; height: 23px; text-align: left;\">\u6ce8\u91ca<\/td>\n<td style=\"width: 20.0575%; height: 23px; text-align: left;\">(?#comment)<\/td>\n<td style=\"width: 63.8505%; height: 23px; text-align: left;\">\u8fd9\u79cd\u7c7b\u578b\u7684\u5206\u7ec4\u4e0d\u5bf9\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u5904\u7406\u4ea7\u751f\u4efb\u4f55\u5f71\u54cd\uff0c\u7528\u4e8e\u63d0\u4f9b\u6ce8\u91ca\u8ba9\u4eba\u9605 \u8bfb<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6211\u4eec\u5df2\u7ecf\u8ba8\u8bba\u4e86\u524d\u4e24\u79cd\u8bed\u6cd5\u3002\u7b2c\u4e09\u4e2a<code>(?:exp)<\/code>\u4e0d\u4f1a\u6539\u53d8\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u5904\u7406\u65b9\u5f0f\uff0c\u53ea \u662f\u8fd9\u6837\u7684\u7ec4\u5339\u914d\u7684\u5185\u5bb9\u4e0d\u4f1a\u50cf\u524d\u4e24\u79cd\u90a3\u6837\u88ab\u6355\u83b7\u5230\u67d0\u4e2a\u7ec4\u91cc\u9762\uff0c\u4e5f\u4e0d\u4f1a\u62e5\u6709\u7ec4\u53f7\u3002\u201c\u6211\u4e3a\u4ec0\u4e48\u4f1a\u60f3\u8981\u8fd9\u6837 \u505a\uff1f\u201d\u2014\u2014\u597d\u95ee\u9898\uff0c\u4f60\u89c9\u5f97\u4e3a\u4ec0\u4e48\u5462\uff1f<\/p>\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u96f6\u5bbd\u65ad\u8a00<\/h1>\n<p>\u5730\u7403\u4eba\uff0c\u662f\u4e0d\u662f\u89c9\u5f97\u8fd9\u4e9b\u672f\u8bed\u540d\u79f0\u592a\u590d\u6742\uff0c\u592a\u96be\u8bb0\u4e86\uff1f\u6211\u4e5f\u6709\u540c\u611f\u3002\u77e5\u9053\u6709\u8fd9\u4e48\u4e00\u79cd\u4e1c\u897f\u5c31\u884c\u4e86\uff0c\u5b83\u53eb\u4ec0\u4e48\uff0c\u968f\u5b83\u53bb \u5427\uff01\u4eba\u82e5\u65e0\u540d\uff0c\u4fbf\u53ef\u4e13\u5fc3\u7ec3\u5251\uff1b\u7269\u82e5\u65e0\u540d\uff0c\u4fbf\u53ef\u968f\u610f\u53d6\u820d\u2026\u2026<\/p>\n<p>\u63a5\u4e0b\u6765\u7684\u56db\u4e2a\u7528\u4e8e\u67e5\u627e\u5728\u67d0\u4e9b\u5185\u5bb9(\u4f46\u5e76\u4e0d\u5305\u62ec\u8fd9\u4e9b\u5185\u5bb9)\u4e4b\u524d\u6216\u4e4b\u540e\u7684\u4e1c\u897f\uff0c\u4e5f\u5c31\u662f\u8bf4\u5b83\u4eec\u50cf\\b,^,$\u90a3\u6837\u7528\u4e8e\u6307\u5b9a\u4e00\u4e2a\u4f4d\u7f6e\uff0c\u8fd9\u4e2a\u4f4d\u7f6e\u5e94\u8be5\u6ee1\u8db3\u4e00\u5b9a\u7684 \u6761\u4ef6(\u5373\u65ad\u8a00)\uff0c\u56e0\u6b64\u5b83\u4eec\u4e5f\u88ab\u79f0\u4e3a\u96f6\u5bbd\u65ad\u8a00\u3002<\/p>\n<p>\u6700\u597d\u8fd8\u662f\u62ff\u4f8b\u5b50\u6765\u8bf4\u660e\u5427\uff1a<\/p>\n<p>\u65ad\u8a00\u7528\u6765\u58f0\u660e\u4e00\u4e2a\u5e94\u8be5\u4e3a\u771f\u7684\u4e8b\u5b9e\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u53ea\u6709\u5f53\u65ad\u8a00\u4e3a\u771f\u65f6\u624d\u4f1a\u7ee7\u7eed\u8fdb\u884c\u5339\u914d\u3002<\/p>\n<p><code>(?=exp)<\/code>\u4e5f\u53eb\u96f6\u5bbd\u5ea6\u6b63\u9884\u6d4b\u5148\u884c\u65ad\u8a00\uff0c \u5b83\u65ad\u8a00\u81ea\u8eab\u51fa\u73b0\u7684\u4f4d\u7f6e\u7684\u540e\u9762\u80fd\u5339\u914d\u8868\u8fbe\u5f0fexp\u3002\u6bd4\u5982<code>\\b\\w+(?=ing\\b)<\/code>\uff0c \u5339\u914d\u4ee5ing\u7ed3\u5c3e\u7684\u5355\u8bcd\u7684\u524d\u9762\u90e8\u5206(\u9664\u4e86ing\u4ee5\u5916\u7684\u90e8\u5206)\uff0c\u5982\u67e5\u627eI&#8217;m singing while you&#8217;re dancing.\u65f6\uff0c\u5b83\u4f1a\u5339\u914dsing\u548cdanc\u3002<\/p>\n<p><code>(?&lt;=exp)<\/code>\u4e5f\u53eb\u96f6\u5bbd\u5ea6\u6b63\u56de\u987e\u540e \u53d1\u65ad\u8a00\uff0c\u5b83\u65ad\u8a00\u81ea\u8eab\u51fa\u73b0\u7684\u4f4d\u7f6e\u7684\u524d\u9762\u80fd\u5339\u914d\u8868\u8fbe\u5f0fexp\u3002\u6bd4\u5982<code>(?&lt;=\\bre)\\w+\\b<\/code>\u4f1a\u5339\u914d\u4ee5re\u5f00\u5934\u7684\u5355\u8bcd\u7684\u540e\u534a\u90e8 \u5206(\u9664\u4e86re\u4ee5\u5916\u7684\u90e8\u5206)\uff0c\u4f8b\u5982\u5728\u67e5\u627ereading a book\u65f6\uff0c\u5b83\u5339\u914dading\u3002<\/p>\n<p>\u5047\u5982\u4f60\u60f3\u8981\u7ed9\u4e00\u4e2a\u5f88\u957f\u7684\u6570\u5b57\u4e2d\u6bcf\u4e09\u4f4d\u95f4\u52a0\u4e00\u4e2a\u9017\u53f7(\u5f53\u7136\u662f\u4ece\u53f3\u8fb9\u52a0\u8d77\u4e86)\uff0c\u4f60\u53ef\u4ee5\u8fd9\u6837\u67e5\u627e\u9700\u8981\u5728\u524d\u9762\u548c\u91cc\u9762\u6dfb\u52a0\u9017\u53f7\u7684\u90e8\u5206\uff1a<code>((?&lt;=\\d)\\d{3})+\\b<\/code>\uff0c\u7528\u5b83\u5bf91234567890\u8fdb \u884c\u67e5\u627e\u65f6\u7ed3\u679c\u662f234567890\u3002<\/p>\n<p>\u4e0b\u9762\u8fd9\u4e2a\u4f8b\u5b50\u540c\u65f6\u4f7f\u7528\u4e86\u8fd9\u4e24\u79cd\u65ad\u8a00\uff1a<code>(?&lt;=\\s)\\d+(?=\\s)<\/code>\u5339\u914d\u4ee5\u7a7a\u767d\u7b26\u95f4\u9694\u7684\u6570\u5b57(\u518d\u6b21\u5f3a\u8c03\uff0c\u4e0d\u5305\u62ec\u8fd9\u4e9b\u7a7a\u767d\u7b26)\u3002<\/p>\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u8d1f\u5411\u96f6\u5bbd\u65ad\u8a00<\/h1>\n<p>\u524d\u9762\u6211\u4eec\u63d0\u5230\u8fc7\u600e\u4e48\u67e5\u627e\u4e0d\u662f\u67d0\u4e2a\u5b57\u7b26\u6216\u4e0d\u5728\u67d0\u4e2a\u5b57\u7b26\u7c7b\u91cc\u7684\u5b57\u7b26\u7684\u65b9\u6cd5(\u53cd\u4e49)\u3002\u4f46\u662f\u5982\u679c\u6211\u4eec\u53ea\u662f\u60f3\u8981\u786e \u4fdd\u67d0\u4e2a\u5b57\u7b26\u6ca1\u6709\u51fa\u73b0\uff0c\u4f46\u5e76\u4e0d\u60f3\u53bb\u5339\u914d\u5b83\u65f6\u600e\u4e48\u529e\uff1f<\/p>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u6211\u4eec\u60f3\u67e5\u627e\u8fd9\u6837\u7684\u5355\u8bcd&#8211;\u5b83\u91cc\u9762\u51fa\u73b0\u4e86\u5b57\u6bcdq,\u4f46\u662fq\u540e\u9762\u8ddf\u7684\u4e0d\u662f\u5b57\u6bcdu, \u6211\u4eec\u53ef\u4ee5\u5c1d\u8bd5\u8fd9\u6837\uff1a<\/p>\n<p><code>\\b\\w*q[^u]\\w*\\b<\/code>\u5339\u914d\u5305\u542b\u540e \u9762\u4e0d\u662f\u5b57\u6bcdu\u7684\u5b57\u6bcdq\u7684\u5355\u8bcd\u3002<\/p>\n<p>\u4f46\u662f\u5982\u679c\u591a\u505a\u6d4b\u8bd5(\u6216\u8005\u4f60\u601d\u7ef4\u8db3\u591f\u654f\u9510\uff0c\u76f4\u63a5\u5c31\u89c2\u5bdf\u51fa\u6765\u4e86)\uff0c\u4f60\u4f1a\u53d1\u73b0\uff0c\u5982\u679cq\u51fa\u73b0\u5728\u5355\u8bcd \u7684\u7ed3\u5c3e\u7684\u8bdd\uff0c\u50cfIraq,Benq\uff0c\u8fd9\u4e2a\u8868\u8fbe\u5f0f\u5c31\u4f1a\u51fa\u9519\u3002<\/p>\n<p>\u8fd9\u662f\u56e0\u4e3a<code>[^u]<\/code>\u603b\u8981\u5339\u914d\u4e00\u4e2a\u5b57\u7b26\uff0c\u6240\u4ee5\u5982\u679cq\u662f\u5355\u8bcd\u7684\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u7684\u8bdd\uff0c\u540e\u9762\u7684[^u]\u5c06 \u4f1a\u5339\u914dq\u540e\u9762\u7684\u5355\u8bcd\u5206\u9694\u7b26(\u53ef\u80fd\u662f\u7a7a\u683c\uff0c\u6216\u8005\u662f\u53e5\u53f7\u6216\u5176\u5b83\u7684\u4ec0\u4e48)\uff0c\u540e\u9762\u7684\\w*\\b\u5c06\u4f1a\u5339\u914d\u4e0b\u4e00 \u4e2a\u5355\u8bcd\uff0c\u4e8e\u662f\\b\\w*q[^u]\\w*\\b\u5c31\u80fd\u5339\u914d\u6574\u4e2aIraq fighting\u3002<\/p>\n<p>\u8d1f\u5411\u96f6\u5bbd\u65ad\u8a00\u80fd\u89e3\u51b3\u8fd9 \u6837\u7684\u95ee\u9898\uff0c\u56e0\u4e3a\u5b83\u53ea\u5339\u914d\u4e00\u4e2a\u4f4d\u7f6e\uff0c\u5e76\u4e0d\u6d88\u8d39\u4efb\u4f55\u5b57\u7b26\u3002\u73b0\u5728\uff0c\u6211\u4eec\u53ef\u4ee5\u8fd9\u6837\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff1a<code>\\b\\w*q(?!u)\\w*\\b<\/code>\u3002<\/p>\n<p>\u96f6\u5bbd\u5ea6\u8d1f\u9884\u6d4b\u5148\u884c\u65ad\u8a00<code>(?!exp)<\/code>\uff0c\u65ad\u8a00\u6b64\u4f4d\u7f6e\u7684\u540e\u9762\u4e0d\u80fd\u5339\u914d\u8868\u8fbe\u5f0fexp\u3002<\/p>\n<p>\u4f8b\u5982\uff1a<code>\\d{3}(?!\\d)<\/code>\u5339 \u914d\u4e09\u4f4d\u6570\u5b57\uff0c\u800c\u4e14\u8fd9\u4e09\u4f4d\u6570\u5b57\u7684\u540e\u9762\u4e0d\u80fd\u662f\u6570\u5b57\uff1b<code>\\b((?!abc)\\w)+\\b<\/code>\u5339 \u914d\u4e0d\u5305\u542b\u8fde\u7eed\u5b57\u7b26\u4e32abc\u7684\u5355\u8bcd\u3002<\/p>\n<p>\u540c\u7406\uff0c\u6211\u4eec\u53ef\u4ee5\u7528<code>(?&lt;!exp)<\/code>,\u96f6 \u5bbd\u5ea6\u8d1f\u56de\u987e\u540e\u53d1\u65ad\u8a00\u6765\u65ad\u8a00\u6b64\u4f4d\u7f6e\u7684\u524d\u9762\u4e0d\u80fd\u5339\u914d\u8868\u8fbe\u5f0fexp\uff1a(?&lt;![a-z])\\d{7}\u5339\u914d\u524d\u9762\u4e0d\u662f\u5c0f\u5199\u5b57\u6bcd\u7684\u4e03\u4f4d\u6570 \u5b57\u3002<\/p>\n<p>\u8bf7\u8be6\u7ec6\u5206\u6790\u8868\u8fbe\u5f0f<code>(?&lt;=&lt;(\\w+)&gt;).*(?=&lt;\\\/\\1&gt;)<\/code>\uff0c \u8fd9\u4e2a\u8868\u8fbe\u5f0f\u6700\u80fd\u8868\u73b0\u96f6\u5bbd\u65ad\u8a00\u7684\u771f\u6b63\u7528\u9014\u3002<\/p>\n<p>\u4e00\u4e2a\u66f4\u590d\u6742\u7684\u4f8b\u5b50\uff1a<code>(?&lt;=&lt;(\\w+)&gt;).*(?=&lt;\\\/\\1&gt;)<\/code>\u5339 \u914d\u4e0d\u5305\u542b\u5c5e\u6027\u7684\u7b80\u5355HTML\u6807\u7b7e\u5185\u91cc\u7684\u5185\u5bb9\u3002<\/p>\n<p>(&lt;?(\\w+)&gt;)\u6307 \u5b9a\u4e86\u8fd9\u6837\u7684\u524d\u7f00\uff1a\u88ab\u5c16\u62ec\u53f7\u62ec\u8d77\u6765\u7684\u5355\u8bcd(\u6bd4 \u5982\u53ef\u80fd\u662f&lt;b&gt;)\uff0c\u7136\u540e\u662f.*(\u4efb\u610f\u7684\u5b57\u7b26\u4e32),\u6700\u540e\u662f\u4e00\u4e2a\u540e\u7f00(?=&lt;\\\/\\1&gt;)\u3002<\/p>\n<p>\u6ce8\u610f\u540e\u7f00\u91cc\u7684\\\/\uff0c\u5b83\u7528\u5230\u4e86\u524d\u9762\u63d0\u8fc7\u7684\u5b57\u7b26\u8f6c\u4e49\uff1b\\1\u5219\u662f\u4e00\u4e2a\u53cd\u5411 \u5f15\u7528\uff0c\u5f15\u7528\u7684\u6b63\u662f\u6355\u83b7\u7684\u7b2c\u4e00\u7ec4\uff0c\u524d\u9762\u7684(\\w+)\u5339 \u914d\u7684\u5185\u5bb9\uff0c\u8fd9\u6837\u5982\u679c\u524d\u7f00\u5b9e\u9645\u4e0a\u662f&lt;b&gt;\u7684\u8bdd\uff0c\u540e\u7f00\u5c31\u662f&lt;\/b&gt;\u4e86\u3002<\/p>\n<p>\u6574\u4e2a\u8868\u8fbe\u5f0f\u5339\u914d\u7684\u662f&lt;b&gt;\u548c&lt;\/b&gt; \u4e4b\u95f4\u7684\u5185\u5bb9(\u518d\u6b21\u63d0\u9192\uff0c\u4e0d\u5305\u62ec\u524d\u7f00\u548c\u540e\u7f00\u672c\u8eab)\u3002<\/p>\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u6ce8\u91ca<\/h1>\n<p>\u5c0f\u62ec\u53f7\u7684\u53e6\u4e00\u79cd\u7528\u9014\u662f\u901a\u8fc7\u8bed\u6cd5<code>(?#comment)<\/code>\u6765\u5305\u542b\u6ce8\u91ca\u3002\u4f8b\u5982\uff1a<code>2[0-4]\\d(?#200-249)|25[0-5](?#250-255)|[01]?\\d\\d?(?#0-199)<\/code>\u3002<\/p>\n<p>\u8981\u5305\u542b\u6ce8\u91ca\u7684\u8bdd\uff0c\u6700\u597d\u662f\u542f\u7528\u201c\u5ffd\u7565\u6a21\u5f0f\u91cc\u7684\u7a7a\u767d\u7b26\u201d\u9009\u9879\uff0c\u8fd9\u6837\u5728\u7f16\u5199\u8868\u8fbe\u5f0f\u65f6\u80fd\u4efb\u610f\u7684\u6dfb\u52a0\u7a7a\u683c\uff0cTab\uff0c\u6362\u884c\uff0c\u800c\u5b9e\u9645\u4f7f\u7528\u65f6\u8fd9\u4e9b\u90fd\u5c06\u88ab\u5ffd \u7565\u3002\u542f\u7528\u8fd9\u4e2a\u9009\u9879\u540e\uff0c\u5728#\u540e\u9762\u5230\u8fd9\u4e00\u884c\u7ed3\u675f\u7684\u6240\u6709\u6587\u672c\u90fd\u5c06\u88ab\u5f53\u6210\u6ce8\u91ca\u5ffd\u7565\u6389\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u524d\u9762\u7684\u4e00\u4e2a\u8868\u8fbe\u5f0f\u5199\u6210\u8fd9\u6837\uff1a<\/p>\n\n\n\n<pre>\n<span>      (?&lt;=    # \u65ad\u8a00\u8981\u5339\u914d\u7684\u6587\u672c\u7684\u524d\u7f00<\/span>\n<span>      &lt;(\\w+)&gt; # \u67e5\u627e\u5c16\u62ec\u53f7\u62ec\u8d77\u6765\u7684\u5b57\u6bcd\u6216\u6570\u5b57(\u5373HTML\/XML\u6807\u7b7e)<\/span>\n<span>      )       # \u524d\u7f00\u7ed3\u675f<\/span>\n<span>      .*      # \u5339\u914d\u4efb\u610f\u6587\u672c<\/span>\n<span>      (?=     # \u65ad\u8a00\u8981\u5339\u914d\u7684\u6587\u672c\u7684\u540e\u7f00<\/span>\n<span>      &lt;\\\/\\1&gt;  # \u67e5\u627e\u5c16\u62ec\u53f7\u62ec\u8d77\u6765\u7684\u5185\u5bb9\uff1a\u524d\u9762\u662f\u4e00\u4e2a&quot;\/&quot;\uff0c\u540e\u9762\u662f\u5148\u524d\u6355\u83b7\u7684\u6807\u7b7e<\/span>\n<span>      )       # \u540e\u7f00\u7ed3\u675f <\/span>\n<\/pre>\n\n\n\n<h1>\u00a0<\/h1>\n<h1 id=\"greedyandlazy\" style=\"text-align: center;\">\u8d2a\u5a6a\u4e0e\u61d2\u60f0<\/h1>\n<p>\u5f53\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u5305\u542b\u80fd\u63a5\u53d7\u91cd\u590d\u7684\u9650\u5b9a\u7b26\u65f6\uff0c\u901a\u5e38\u7684\u884c\u4e3a\u662f\uff08\u5728\u4f7f\u6574\u4e2a\u8868\u8fbe\u5f0f\u80fd\u5f97\u5230\u5339\u914d\u7684\u524d\u63d0\u4e0b\uff09\u5339\u914d<strong>\u5c3d\u53ef\u80fd\u591a<\/strong>\u7684 \u5b57\u7b26\u3002<\/p>\n<p>\u4ee5\u8fd9\u4e2a\u8868\u8fbe\u5f0f\u4e3a\u4f8b\uff1a<code><span class=\"regex\">a.*b<\/span><\/code>\uff0c\u5b83\u5c06\u4f1a\u5339\u914d<span class=\"desc\">\u6700\u957f\u7684\u4ee5 a\u5f00\u59cb\uff0c\u4ee5b\u7ed3\u675f\u7684\u5b57\u7b26\u4e32<\/span>\u3002\u5982\u679c\u7528\u5b83\u6765\u641c\u7d22<span class=\"string\">aabab<\/span>\u7684\u8bdd\uff0c\u5b83\u4f1a\u5339\u914d\u6574\u4e2a\u5b57\u7b26\u4e32<span class=\"desc\">aabab<\/span>\u3002\u8fd9\u88ab\u79f0\u4e3a<span class=\"name\">\u8d2a\u5a6a<\/span>\u5339\u914d\u3002<\/p>\n<p>\u6709\u65f6\uff0c\u6211\u4eec\u66f4\u9700\u8981<span class=\"name\">\u61d2\u60f0<\/span>\u5339\u914d\uff0c\u4e5f\u5c31\u662f\u5339\u914d<strong>\u5c3d\u53ef\u80fd\u5c11<\/strong>\u7684 \u5b57\u7b26\u3002\u524d\u9762\u7ed9\u51fa\u7684\u9650\u5b9a\u7b26\u90fd\u53ef\u4ee5\u88ab\u8f6c\u5316\u4e3a\u61d2\u60f0\u5339\u914d\u6a21\u5f0f\uff0c\u53ea\u8981\u5728\u5b83\u540e\u9762\u52a0\u4e0a\u4e00\u4e2a\u95ee\u53f7<code><span class=\"code\">?<\/span><\/code>\u3002<\/p>\n<p>\u8fd9\u6837<code><span class=\"regex\">.*?<\/span><\/code>\u5c31\u610f\u5473\u7740<span class=\"desc\">\u5339\u914d\u4efb\u610f\u6570\u91cf\u7684\u91cd\u590d\uff0c\u4f46\u662f\u5728\u80fd\u4f7f\u6574\u4e2a\u5339\u914d\u6210\u529f\u7684\u524d\u63d0 \u4e0b\u4f7f\u7528\u6700\u5c11\u7684\u91cd\u590d<\/span>\u3002\u73b0\u5728\u770b\u770b\u61d2\u60f0\u7248\u7684\u4f8b\u5b50\u5427\uff1a<\/p>\n<p><code><span class=\"regex\">a.*?b<\/span><\/code>\u5339\u914d<span class=\"desc\">\u6700\u77ed\u7684\uff0c\u4ee5a\u5f00\u59cb\uff0c\u4ee5b\u7ed3 \u675f\u7684\u5b57\u7b26\u4e32<\/span>\u3002\u5982\u679c\u628a\u5b83\u5e94\u7528\u4e8e<span class=\"string\">aabab<\/span>\u7684\u8bdd\uff0c\u5b83\u4f1a\u5339\u914d<span class=\"desc\">aab\uff08\u7b2c\u4e00\u5230\u7b2c\u4e09\u4e2a\u5b57\u7b26\uff09<\/span>\u548c<span class=\"desc\">ab\uff08\u7b2c\u56db\u5230\u7b2c\u4e94\u4e2a\u5b57\u7b26\uff09<\/span>\u3002<\/p>\n<p class=\"note\">\u4e3a\u4ec0\u4e48\u7b2c\u4e00\u4e2a\u5339\u914d\u662faab\uff08\u7b2c\u4e00\u5230\u7b2c\u4e09\u4e2a\u5b57\u7b26\uff09\u800c\u4e0d\u662fab\uff08\u7b2c\u4e8c\u5230\u7b2c\u4e09\u4e2a\u5b57\u7b26\uff09\uff1f\u7b80\u5355\u5730\u8bf4\uff0c\u56e0\u4e3a\u6b63\u5219\u8868\u8fbe\u5f0f\u6709\u53e6 \u4e00\u6761\u89c4\u5219\uff0c\u6bd4\u61d2\u60f0\uff0f\u8d2a\u5a6a\u89c4\u5219\u7684\u4f18\u5148\u7ea7\u66f4\u9ad8\uff1a<\/p>\n<p class=\"note\"><strong>\u6700\u5148\u5f00\u59cb\u7684\u5339\u914d\u62e5\u6709\u6700\u9ad8\u7684\u4f18\u5148\u6743\u2014\u2014The match that begins earliest wins\u3002<\/strong><\/p>\n<p>\u61d2\u60f0\u9650\u5b9a\u7b26<\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 138px;\">\n<tbody>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.9655%; text-align: left; height: 23px;\">\u4ee3\u7801<\/td>\n<td style=\"width: 76.0345%; text-align: left; height: 23px;\">\u8bf4\u660e<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.9655%; text-align: left; height: 23px;\">*?<\/td>\n<td style=\"width: 76.0345%; text-align: left; height: 23px;\">\u91cd\u590d\u4efb\u610f\u6b21\uff0c\u4f46\u5c3d\u53ef\u80fd\u5c11\u91cd\u590d<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.9655%; text-align: left; height: 23px;\">+?<\/td>\n<td style=\"width: 76.0345%; text-align: left; height: 23px;\">\u91cd\u590d1\u6b21\u6216\u66f4\u591a\u6b21\uff0c\u4f46\u5c3d\u53ef\u80fd\u5c11\u91cd\u590d<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.9655%; text-align: left; height: 23px;\">??<\/td>\n<td style=\"width: 76.0345%; text-align: left; height: 23px;\">\u91cd\u590d1\u6b21\u62160\u6b21\uff0c\u4f46\u5c3d\u53ef\u80fd\u5c11\u91cd\u590d<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.9655%; text-align: left; height: 23px;\">{n,m}?<\/td>\n<td style=\"width: 76.0345%; text-align: left; height: 23px;\">\u91cd\u590dn\u5230m\u6b21\uff0c\u4f46\u5c3d\u53ef\u80fd\u5c11\u91cd\u590d<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.9655%; text-align: left; height: 23px;\">{n,}?<\/td>\n<td style=\"width: 76.0345%; text-align: left; height: 23px;\">\u91cd\u590dn\u6b21\u4ee5\u4e0a\uff0c\u4f46\u5c3d\u53ef\u80fd\u5c11\u91cd\u590d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1>\u00a0<\/h1>\n<h1 id=\"regexoptions\" style=\"text-align: center;\">\u5904\u7406\u9009\u9879<\/h1>\n<p class=\"note\">\u5728python\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u53c2\u6570\u6765\u8bbe\u7f6e\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u5904\u7406\u9009\u9879\uff08flags\uff09\u3002<\/p>\n<p>\u5e38\u7528\u7684\u5904\u7406\u9009\u9879<\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 231px;\">\n<tbody>\n<tr style=\"height: 23px;\">\n<td style=\"width: 33.9655%; height: 23px; text-align: left;\">\u540d\u79f0<\/td>\n<td style=\"width: 66.0345%; height: 23px; text-align: left;\">\u8bf4\u660e<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 33.9655%; height: 23px; text-align: left;\">re.I<\/td>\n<td style=\"width: 66.0345%; height: 23px; text-align: left;\">\u5339\u914d\u65f6\u4e0d\u533a\u5206\u5927\u5c0f\u5199\u3002<\/td>\n<\/tr>\n<tr style=\"height: 85px;\">\n<td style=\"width: 33.9655%; height: 85px; text-align: left;\">re.L<\/td>\n<td style=\"width: 66.0345%; height: 85px; text-align: left;\">\u8868\u793a\u7279\u6b8a\u5b57\u7b26\u96c6 \\w, \\W, \\b, \\B, \\s, \\S \u4f9d\u8d56\u4e8e\u5f53\u524d\u73af\u5883<\/td>\n<\/tr>\n<tr style=\"height: 44px;\">\n<td style=\"width: 33.9655%; height: 44px; text-align: left;\">re.M<\/td>\n<td style=\"width: 66.0345%; height: 44px; text-align: left;\">\u591a\u884c\u6a21\u5f0f<\/td>\n<\/tr>\n<tr style=\"height: 10px;\">\n<td style=\"width: 33.9655%; height: 10px; text-align: left;\">re.S<\/td>\n<td style=\"width: 66.0345%; height: 10px; text-align: left;\">\u4f7f . \u5339\u914d\u5305\u62ec\u6362\u884c\u7b26\u5728\u5185\u7684\u6240\u6709\u5b57\u7b26\uff08\u9ed8\u8ba4. \u4e0d\u5305\u62ec\u6362\u884c\u7b26\uff09<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 33.9655%; height: 23px; text-align: left;\">re.U<\/td>\n<td style=\"width: 66.0345%; height: 23px; text-align: left;\">\u8868\u793a\u7279\u6b8a\u5b57\u7b26\u96c6 \\w, \\W, \\b, \\B, \\d, \\D, \\s, \\S \u4f9d\u8d56\u4e8e Unicode \u5b57\u7b26\u5c5e\u6027\u6570\u636e\u5e93<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 33.9655%; height: 23px; text-align: left;\">re.X<\/td>\n<td style=\"width: 66.0345%; height: 23px; text-align: left;\">\u4e3a\u4e86\u589e\u52a0\u53ef\u8bfb\u6027\uff0c\u5ffd\u7565\u7a7a\u683c\u548c\u00a0<span class=\"marked\">#<\/span>\u00a0\u540e\u9762\u7684\u6ce8\u91ca<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f7f\u7528\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<pre>\n<span>re.compile(pattern[, flags]) <\/span>\n<\/pre>\n\n\n\n<p>compile \u51fd\u6570\u7528\u4e8e\u7f16\u8bd1\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u751f\u6210\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\uff08 Pattern \uff09\u5bf9\u8c61\uff0c\u4f9b match() \u548c search() \u8fd9\u4e24\u4e2a\u51fd\u6570\u4f7f\u7528\u3002<\/p>\n<p>\u4e00\u4e2a\u7ecf\u5e38\u88ab\u95ee\u5230\u7684\u95ee\u9898\u662f\uff1a\u662f\u4e0d\u662f\u53ea\u80fd\u540c\u65f6\u4f7f\u7528\u591a\u884c\u6a21\u5f0f\u548c\u5355\u884c\u6a21\u5f0f\u4e2d\u7684\u4e00\u79cd\uff1f\u7b54\u6848\u662f\uff1a\u4e0d\u662f\u3002\u8fd9\u4e24\u4e2a\u9009\u9879\u4e4b\u95f4\u6ca1\u6709\u4efb\u4f55\u5173\u7cfb\uff0c\u9664\u4e86\u5b83\u4eec\u7684\u540d\u5b57\u6bd4\u8f83 \u76f8\u4f3c\uff08\u4ee5\u81f3\u4e8e\u8ba9\u4eba\u611f\u5230\u7591\u60d1\uff09\u4ee5\u5916\u3002<\/p>\n\n\n\n<h1>\u00a0<\/h1>\n<h1 id=\"more\" style=\"text-align: center;\">\u8fd8\u6709\u4e9b\u4ec0\u4e48\u4e1c\u897f\u6ca1\u63d0\u5230<\/h1>\n<p>\u4e0a\u8fb9\u5df2\u7ecf\u63cf\u8ff0\u4e86\u6784\u9020\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u5927\u91cf\u5143\u7d20\uff0c\u4f46\u662f\u8fd8\u6709\u5f88\u591a\u6ca1\u6709\u63d0\u5230\u7684\u4e1c\u897f\u3002\u4e0b\u9762\u662f\u4e00\u4e9b\u672a\u63d0\u5230\u7684\u5143\u7d20\u7684\u5217\u8868\uff0c\u5305\u542b\u8bed\u6cd5\u548c\u7b80\u5355\u7684\u8bf4\u660e\u3002<\/p>\n<p>\u5176\u4ed6\u8bed\u6cd5<\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 437px;\">\n<tbody>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\u4ee3\u7801<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">\u8bf4\u660e<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\a<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">\u62a5\u8b66\u5b57\u7b26(\u6253\u5370\u5b83\u7684\u6548\u679c\u662f\u7535\u8111\u5600\u4e00\u58f0)<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\b<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">\u901a\u5e38\u662f\u5355\u8bcd\u5206\u754c\u4f4d\u7f6e\uff0c\u4f46\u5982\u679c\u5728\u5b57\u7b26\u7c7b\u91cc\u4f7f\u7528\u4ee3\u8868\u9000\u683c<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\t<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">\u5236\u8868\u7b26Tab<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\r<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">\u56de\u8f66<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\v<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">\u7ad6\u5411\u5236\u8868\u7b26<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\f<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">\u5206\u9875\u7b26<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\n<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">\u6362\u884c\u7b26<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\e<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">ESC<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\0nn<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">ASCII\u4ee3\u7801\u4e2d\u516b\u8fdb\u5236\u4ee3\u7801\u4e3ann\u7684\u5b57\u7b26<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\xnn<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">ASCII\u4ee3\u7801\u4e2d\u5341\u516d\u8fdb\u5236\u4ee3\u7801\u4e3ann\u7684\u5b57\u7b26<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\unnnn<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">Unicode\u4ee3\u7801\u4e2d\u5341\u516d\u8fdb\u5236\u4ee3\u7801\u4e3annnn\u7684\u5b57\u7b26<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\cN<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">ASCII\u63a7\u5236\u5b57\u7b26\u3002\u6bd4\u5982\\cC\u4ee3\u8868Ctrl+C<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\A<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">\u5b57\u7b26\u4e32\u5f00\u5934(\u7c7b\u4f3c^\uff0c\u4f46\u4e0d\u53d7\u5904\u7406\u591a\u884c\u9009\u9879\u7684\u5f71\u54cd)<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\Z<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">\u5b57\u7b26\u4e32\u7ed3\u5c3e\u6216\u884c\u5c3e(\u4e0d\u53d7\u5904\u7406\u591a\u884c\u9009\u9879\u7684\u5f71\u54cd)<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\z<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">\u5b57\u7b26\u4e32\u7ed3\u5c3e(\u7c7b\u4f3c$\uff0c\u4f46\u4e0d\u53d7\u5904\u7406\u591a\u884c\u9009\u9879\u7684\u5f71\u54cd)<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\G<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">\u5f53\u524d\u641c\u7d22\u7684\u5f00\u5934<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">\\p{name}<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">Unicode\u4e2d\u547d\u540d\u4e3aname\u7684\u5b57\u7b26\u7c7b\uff0c\u4f8b\u5982\\p{IsGreek}<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 23.7931%; height: 23px; text-align: left;\">(?&gt;exp)<\/td>\n<td style=\"width: 76.2069%; height: 23px; text-align: left;\">\u8d2a\u5a6a\u5b50\u8868\u8fbe\u5f0f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u5173\u4e8e\\r\u4e0e\\n<\/h1>\n<p>\u6211\u4eec\u7ecf\u5e38\u9047\u5230\u7684\u4e00\u4e2a\u95ee\u9898\u5c31\u662f\uff0cUnix\/Mac\u7cfb\u7edf\u4e0b\u7684\u6587\u4ef6\u5728Windows\u91cc\u6253\u5f00\u7684\u8bdd\uff0c\u6240\u6709\u6587\u5b57\u4f1a\u53d8\u6210\u4e00\u884c\uff1b\u800cWindows\u91cc\u7684\u6587\u4ef6\u5728Unix\/Mac\u4e0b\u6253\u5f00\u7684\u8bdd\uff0c\u5728\u6bcf\u884c\u7684\u7ed3\u5c3e\u53ef\u80fd\u4f1a\u591a\u51fa\u4e00\u4e2a^M\u7b26\u53f7\u3002<\/p>\n<p>\u6240\u8c13\u7684\\r\u5bf9\u5e94\u7684\u610f\u601d\u662f\u56de\u8f66\uff08return\uff09\uff0c\u800c\\n\u5bf9\u5e94\u7684\u662f\u6362\u884c\uff08new line\uff09\u3002<\/p>\n<p>\u90a3\u4e48\u600e\u4e48\u533a\u5206\u56de\u8f66\u548c\u6362\u884c\u5462\uff1f<\/p>\n<p>\u60f3\u60f3\u770b\uff0c\u6211\u4eec\u5728\u7535\u5f71\u4e2d\u662f\u5426\u770b\u8fc7\u8001\u5f0f\u6253\u5b57\u673a\uff0c\u6bcf\u6253\u5b8c\u4e00\u884c\uff0c\u603b\u4f1a\u7528\u624b\u6a2a\u5411\u62e8\u52a8\u6253\u5b57\u5934\u56de\u5230\u884c\u9996\uff0c\u8fd9\u4e2a\u52a8\u4f5c\u5c31\u53eb\u505a\u56de\u8f66\u3002\u800c\u6362\u884c\uff0c\u987e\u540d\u601d\u4e49\u5c31\u662f\u4e0b\u79fb\u5f00\u59cb\u65b0\u7684\u4e00\u884c\u3002<\/p>\n<p>\u5b9e\u9645\u4e0a\u5728\u8ba1\u7b97\u673a\u8fd8\u6ca1\u6709\u51fa\u73b0\u4e4b\u524d\uff0c\u6709\u4e00\u79cd\u53eb\u505a\u7535\u4f20\u6253\u5b57\u673a\uff08Teletype Model 33\uff09\u7684\u673a\u68b0\u6253\u5b57\u673a\uff0c\u6bcf\u79d2\u949f\u53ef\u4ee5\u625310\u4e2a\u5b57\u7b26\u3002<\/p>\n<p>\u4f46\u662f\u5b83\u6709\u4e00\u4e2a\u95ee\u9898\uff0c\u5c31\u662f\u6253\u5b8c\u4e00\u884c\u6362\u884c\u7684\u65f6\u5019\uff0c\u8981\u7528\u53bb0.2\u79d2\uff0c\u6b63\u597d\u53ef\u4ee5\u6253\u4e24\u4e2a\u5b57\u7b26\u3002\u8981\u662f\u5728\u8fd90.2\u79d2\u91cc\u9762\uff0c\u53c8\u6709\u65b0\u7684\u5b57\u7b26\u4f20\u8fc7\u6765\uff0c\u90a3\u4e48\u8fd9\u4e2a\u5b57\u7b26\u5c06\u4e22\u5931\u3002<\/p>\n<p>\u4e8e\u662f\uff0c\u7814\u5236\u4eba\u5458\u60f3\u4e86\u4e2a\u529e\u6cd5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u5c31\u662f\u5728\u6bcf\u884c\u540e\u9762\u52a0\u4e24\u4e2a\u8868\u793a\u7ed3\u675f\u7684\u5b57\u7b26\u3002\u4e00\u4e2a\u53eb\u505a\u201c\u56de\u8f66\u201d\uff0c\u544a\u8bc9\u6253\u5b57\u673a\u628a\u6253\u5370\u5934\u5b9a\u4f4d\u5728\u5de6\u8fb9\u754c\uff0c\u4e0d\u5377\u52a8\u6eda\u7b52\uff1b\u53e6\u4e00\u4e2a\u53eb\u505a\u201c\u6362\u884c\u201d\uff0c\u544a\u8bc9\u6253\u5b57\u673a\u628a\u6eda\u7b52\u5377\u4e00\u683c\uff0c\u53ea\u6539\u53d8\u5782\u76f4\u4f4d\u7f6e\u3002<\/p>\n<p>\u8fd9\u5c31\u662f\u201c\u6362\u884c\u201d\u548c\u201c\u56de\u8f66\u201d\u7684\u7531\u6765\u3002<\/p>\n<p>\u540e\u6765\uff0c\u8ba1\u7b97\u673a\u53d1\u660e\u4e86\uff0c\u8fd9\u4e24\u4e2a\u6982\u5ff5\u4e5f\u5c31\u88ab\u642c\u5230\u4e86\u8ba1\u7b97\u673a\u4e0a\u3002\u90a3\u65f6\uff0c\u5b58\u50a8\u5668\u5f88\u8d35\uff0c\u4e00\u4e9b\u79d1\u5b66\u5bb6\u8ba4\u4e3a\u5728\u6bcf\u884c\u7ed3\u5c3e\u52a0\u4e24\u4e2a\u5b57\u7b26\u592a\u6d6a\u8d39\u4e86\uff0c\u52a0\u4e00\u4e2a\u5c31\u53ef\u4ee5\u3002\u4e8e\u662f\uff0c\u5c31\u51fa\u73b0\u4e86\u5206\u6b67\u3002<\/p>\n<p>\u5728\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u8fd9\u51e0\u4e2a\u5b57\u7b26\u8868\u73b0\u4e0d\u540c\uff0c\u6bd4\u5982\u5728WIN\u7cfb\u7edf\u4e0b\uff0c\u8fd9\u4e24\u4e2a\u5b57\u7b26\u5c31\u662f\u8868\u73b0\u7684\u672c\u4e49\uff0c\u5728UNIX\u7c7b\u7cfb\u7edf\uff0c\u6362\u884c\\n\u5c31\u8868\u73b0\u4e3a\u5149\u6807\u4e0b\u4e00\u884c\u5e76\u56de\u5230\u884c\u9996\uff0c\u5728MAC\u4e0a\uff0c\\r\u5c31\u8868\u73b0\u4e3a\u56de\u5230\u672c\u884c\u5f00\u5934\u5e76\u5f80\u4e0b\u4e00\u884c\uff0c\u81f3\u4e8eENTER\u952e\u7684\u5b9a\u4e49\u662f\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u6709\u5173\u7684\u3002\u901a\u5e38\u7528\u7684Enter\u662f\u4e24\u4e2a\u52a0\u8d77\u6765\u3002<\/p>\n<p>\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0b\u7684\u542b\u4e49\uff1a<\/p>\n<ul>\n<li>\\n: \u00a0UNIX \u7cfb\u7edf\u884c\u672b\u7ed3\u675f\u7b26<\/li>\n<li>\\r\\n: window \u7cfb\u7edf\u884c\u672b\u7ed3\u675f\u7b26<\/li>\n<li>\\r: \u00a0MAC OS \u7cfb\u7edf\u884c\u672b\u7ed3\u675f\u7b26<\/li>\n<\/ul>\n<p>\u6240\u4ee5\uff0c\u521a\u624d\u8bf4\u7684\u67d0\u4e9b\u6587\u4ef6\u5728windows\u4e0b\u53d8\u6210\u4e00\u884c\u7684\u539f\u56e0\u4e5f\u5c31\u6e05\u695a\u4e86\u3002<\/p>\n<p>\u4e0b\u9762\u518d\u8bf4\u4e00\u4e0b\u8f6f\u56de\u8f66\u548c\u786c\u56de\u8f66\u3002<\/p>\n<p>\u786c\u56de\u8f66\u5c31\u662f\u666e\u901a\u6211\u4eec\u6309\u56de\u8f66\u4ea7\u751f\u7684\uff0c\u5b83\u5728\u6362\u884c\u7684\u540c\u65f6\u4e5f\u8d77\u7740\u6bb5\u843d\u5206\u9694\u7684\u4f5c\u7528\u3002\u00a0<\/p>\n<p>\u8f6f\u56de\u8f66\u662f\u7528 Shift + Enter \u4ea7\u751f\u7684\uff0c\u5b83\u6362\u884c\uff0c\u4f46\u662f\u5e76\u4e0d\u6362\u6bb5\uff0c\u5373\u524d\u540e\u4e24\u6bb5\u6587\u5b57\u5728 Word \u4e2d\u5c5e\u4e8e\u540c\u4e00\u201c\u6bb5\u201d\u3002\u5728\u5e94\u7528\u683c\u5f0f\u65f6\u4f60\u4f1a\u4f53\u4f1a\u5230\u8fd9\u4e00\u70b9\u3002<\/p>\n<p>\u8f6f\u56de\u8f66\u80fd\u4f7f\u524d\u540e\u4e24\u884c\u7684\u884c\u95f4\u8ddd\u5927\u5e45\u5ea6\u7f29\u5c0f\uff0c\u56e0\u4e3a\u5b83\u4e0d\u662f\u6bb5\u843d\u6807\u8bb0\uff0c\u8981\u548c\u6cd5\u5b9a\u7684\u6bb5\u843d\u6807\u8bb0\u2014\u2014\u786c\u56de\u8f66\u533a\u522b\u51fa\u6765\u3002<\/p>\n<p>\u786c\u56de\u8f66\u7684html\u4ee3\u7801\u662f&lt;p&gt;..&lt;\/p&gt;\uff0c\u6bb5\u843d\u7684\u5185\u5bb9\u5c31\u5939\u5728\u91cc\u9762\uff0c\u800c\u8f6f\u56de\u8f66\u7684\u4ee3\u7801\u5f88\u7cbe\u608d\uff1a&lt;br&gt;\u3002<\/p>\n<p>\u7f51\u9875\u7684\u6587\u5b57\u5982\u679c\u590d\u5236\u5230word\u4e2d\uff0c\u5219\u786c\u56de\u8f66\u53d8\u4e3a\u5f2f\u66f2\u7684\u7bad\u5934\uff0c\u8f6f\u56de\u8f66\u53d8\u4e3a\u5411\u4e0b\u7684\u7bad\u5934\u3002<br \/>\u6bd4\u5982\u672c\u884c\u5c31\u662f\u8f6f\u56de\u8f66\uff0c\u548c\u5176\u4ed6\u6bb5\u7684\u95f4\u8ddd\u4e0d\u4e00\u6837\u5bf9\u4e0d\u5bf9\uff1f<\/p>\n<p>\u00a0<\/p>\n<p>\u672c\u6587\u8f6c\u81ea<a href=\"https:\/\/www.oschina.net\/question\/12_9507\">[\u7cbe\u534e] \u6b63\u5219\u8868\u8fbe\u5f0f30\u5206\u949f\u5165\u95e8\u6559\u7a0b<\/a>\uff0c\u4ec5\u7528\u4e8e\u8bb0\u5f55\u4e0e\u67e5\u8be2\u3002<\/p>\n<p>\u00a0<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u6bcf\u5929\u53cd\u590d\u505a\u7684\u4e8b\u60c5\u6210\u5c31\u4e86\u6211\u4eec\uff0c<\/p>\n<p>\u7136\u540e\u4f60\u4f1a\u53d1\u73b0\uff0c<\/p>\n<p>\u4f18\u79c0\u4e0d\u662f\u4e00\u79cd\u884c\u4e3a\uff0c\u800c\u662f\u4e00\u79cd\u4e60\u60ef\u3002<\/p>\n<p style=\"text-align: right;\">\u2014\u2014\u4e9a\u91cc\u58eb\u591a\u5fb7<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u8bb0\u5f55\u4e00\u4e0b\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u57fa\u672c\u7528\u6cd5\u3002 \u00a0 \u4ec0\u4e48\u662f\u6b63\u5219\u8868\u8fbe\u5f0f \u5b57\u7b26\u662f\u8ba1\u7b97\u673a\u8f6f\u4ef6\u5904\u7406\u6587\u5b57\u65f6\u6700\u57fa\u672c\u7684\u5355\u4f4d\uff0c\u53ef\u80fd\u662f\u5b57 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1404,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,4],"tags":[37,22,15],"_links":{"self":[{"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/posts\/1396"}],"collection":[{"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1396"}],"version-history":[{"count":0,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/posts\/1396\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/media\/1404"}],"wp:attachment":[{"href":"https:\/\/www.yumefx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}