{"id":192543,"date":"2022-05-02T08:29:27","date_gmt":"2022-05-02T00:29:27","guid":{"rendered":"https:\/\/www.keaglegz.com\/192543.html"},"modified":"2022-05-02T08:29:27","modified_gmt":"2022-05-02T00:29:27","slug":"%e6%8e%8c%e6%8f%a1emeditor%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f%e8%af%ad%e6%b3%95%ef%bc%8c%e5%a4%a7%e5%a4%a7%e6%8f%90%e5%8d%87%e5%b7%a5%e4%bd%9c%e6%95%88%e7%8e%87","status":"publish","type":"post","link":"https:\/\/www.dongwubaike.cn\/fanhao\/192543.html","title":{"rendered":"\u638c\u63e1EmEditor\u6b63\u5219\u8868\u8fbe\u5f0f\u8bed\u6cd5\uff0c\u5927\u5927\u63d0\u5347\u5de5\u4f5c\u6548\u7387"},"content":{"rendered":"\n<p>\u7f19\u54e5\u54e5\u975e\u5e38\u61d2\uff0c\u5f53\u9047\u5230\u91cd\u590d\u7684\u4e8b\u60c5\u65f6\uff0c\u5c31\u559c\u6b22\u901a\u8fc7\u6279\u91cf\u5904\u7406\u6765\u89e3\u51b3\uff0c\u800c\u6587\u672c\u7528\u7684\u662f EmEditor \u7a0b\u5e8f\uff0cEmEditor \u6b63\u5219\u8868\u8fbe\u5f0f\u8bed\u8a00\u57fa\u4e8e Perl \u6b63\u5219\u8868\u8fbe\u5f0f\u8bed\u6cd5\uff0c\u6240\u4ee5\u901a\u8fc7\u638c\u63e1EmEditor\u6b63\u5219\u8868\u8fbe\u5f0f\u8bed\u6cd5\uff0c\u5927\u5927\u63d0\u5347\u5de5\u4f5c\u6548\u7387\u3002<\/p>\n<blockquote data-secret=\"S1GdEZvO0h\">\n<p>EmEditor 32&#038;64\u4f4d v17.8.0\u7248\u4e0b\u8f7d\uff0c\u9644\u6ce8\u518c\u7801<\/p>\n<\/blockquote>\n<p><iframe loading=\"lazy\" title=\"\u300aEmEditor 32&#038;64\u4f4d v17.8.0\u7248\u4e0b\u8f7d\uff0c\u9644\u6ce8\u518c\u7801\u300b\u2014\u7f19\u54e5\u54e5\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"https:\/\/www.dujin.org\/10222.html\/embed\/#?secret=S1GdEZvO0h\" data-secret=\"S1GdEZvO0h\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h3>\u6587\u5b57<\/h3>\n<p>\u6240\u6709\u5b57\u7b26\u90fd\u662f\u6587\u5b57\u9664\u4e86: &#8220;.&#8221;, &#8220;*&#8221;, &#8220;?&#8221;, &#8220;+&#8221;, &#8220;(&#8220;, &#8220;)&#8221;, &#8220;{&#8220;, &#8220;}&#8221;, &#8220;[&#8220;, &#8220;]&#8221;, &#8220;^&#8221;, &#8220;$&#8221; \u548c &#8220;&#8221;\u3002\u8fd9\u4e9b\u5b57\u7b26\u4ee3\u8868\u6587\u5b57\u5f53\u4e4b\u524d\u6709\u4e00\u4e2a &#8220;&#8221; \u65f6\u3002\u4e00\u4e2a\u6587\u5b57\u662f\u4e00\u4e2a\u4e0e\u5b83\u81ea\u5df1\u76f8\u5339\u914d\u7684\u5b57\u7b26\u3002\u4f8b\u5982\uff0c\u641c\u7d22 &#8220;?&#8221; \u4f1a\u5339\u914d\u6bcf\u4e00\u4e2a\u5728\u6587\u6863\u4e2d\u7684 &#8220;?&#8221; \uff0c\u6216\u641c\u7d22 &#8220;Hello&#8221; \u4f1a\u5339\u914d\u6bcf\u4e00\u4e2a\u5728\u6587\u6863\u4e2d\u7684 &#8220;Hello&#8221; \u3002<\/p>\n<h3>\u5143\u5b57\u7b26<\/h3>\n<p>\u4e0b\u5217\u8868\u683c\u5305\u542b\u5143\u5b57\u7b26\uff08\u975e\u6587\u5b57\uff09\u7684\u5b8c\u6574\u5217\u8868\u4ee5\u53ca\u8fd9\u4e9b\u5143\u5b57\u7b26\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u7684\u884c\u4e3a\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"15%\"><\/td>\n<td width=\"85%\">\u628a\u4e0b\u4e00\u4e2a\u5b57\u7b26\u6807\u8bb0\u4e3a\u4e00\u4e2a\u7279\u6b8a\u5b57\u7b26\uff0c\u4e00\u4e2a\u6587\u5b57\uff0c\u6216\u4e00\u4e2a\u5411\u540e\u5f15\u7528\u3002\u4f8b\u5982\uff0c&#8217;n&#8217; \u4e0e\u5b57\u7b26 &#8220;n&#8221; \u76f8\u5339\u914d\u3002\u800c &#8216;n&#8217; \u4ee3\u8868\u4e00\u4e2a\u6362\u884c\u7b26\u53f7\u3002\u5e8f\u5217 &#8216;\\&#8217; \u4ee3\u8868 &#8220;&#8221;\uff0c&#8221;(&#8221; \u5219\u4e0e &#8220;(&#8221; \u76f8\u5339\u914d\u3002<\/td>\n<\/tr>\n<tr>\n<td>^<\/td>\n<td>\u5339\u914d\u8f93\u5165\u5b57\u7b26\u4e32\u7684\u5f00\u59cb\u4f4d\u7f6e\u3002\u4f8b\u5982\uff0c&#8221;^e&#8221; \u8868\u793a\u4efb\u4f55\u7531 &#8220;e&#8221; \u5f00\u5934\u7684\u5b57\u7b26\u4e32\u3002<\/td>\n<\/tr>\n<tr>\n<td>$<\/td>\n<td>\u5339\u914d\u8f93\u5165\u5b57\u7b26\u4e32\u7684\u7ed3\u5c3e\u4f4d\u7f6e\u3002\u4f8b\u5982\uff0c&#8221;e$&#8221; \u8868\u793a\u4efb\u4f55\u7531 &#8220;e&#8221; \u7ed3\u5c3e\u7684\u5b57\u7b26\u4e32\u3002<\/td>\n<\/tr>\n<tr>\n<td>*<\/td>\n<td>\u5339\u914d\u4e4b\u524d\u7684\u5b57\u7b26\u6216\u5b50\u8868\u8fbe\u5f0f\u96f6\u6b21\u6216\u591a\u6b21\u3002\u4f8b\u5982\uff0czo* \u4f1a\u5339\u914d &#8220;z&#8221; \u4ee5\u53ca &#8220;zoo&#8221;\u3002* \u7b49\u540c\u4e8e {0,}\u3002<\/td>\n<\/tr>\n<tr>\n<td>+<\/td>\n<td>\u5339\u914d\u4e4b\u524d\u7684\u5b57\u7b26\u6216\u5b50\u8868\u8fbe\u5f0f\u4e00\u6b21\u6216\u591a\u6b21\u3002\u4f8b\u5982\uff0c&#8217;zo+&#8217; \u5339\u914d &#8220;zo&#8221; \u4ee5\u53ca &#8220;zoo&#8221;\uff0c\u4f46\u4e0d\u5339\u914d &#8220;z&#8221;\u3002 + \u7b49\u540c\u4e8e {1,}\u3002<\/td>\n<\/tr>\n<tr>\n<td>?<\/td>\n<td>\u5339\u914d\u4e4b\u524d\u7684\u5b57\u7b26\u6216\u5b50\u8868\u8fbe\u5f0f\u96f6\u6b21\u6216\u4e00\u6b21\u3002\u4f8b\u5982\uff0c&#8221;do(es)?&#8221; \u5339\u914d &#8220;do&#8221; \u5728 \u00a0&#8220;do&#8221; \u6216 &#8220;does&#8221; \u4e2d\u3002? \u7b49\u540c\u4e8e {0,1}\u3002<\/td>\n<\/tr>\n<tr>\n<td>{n}<\/td>\n<td>n \u662f\u4e00\u4e2a\u975e\u8d1f\u6574\u6570\u3002\u5339\u914d\u786e\u5b9a\u7684 n \u6b21\u3002\u4f8b\u5982\uff0c&#8217;o{2}&#8217; \u4e0d\u5339\u914d &#8220;Bob&#8221; \u4e2d\u7684 &#8220;o&#8221;\uff0c\u4f46\u4e0e &#8220;food&#8221; \u4e2d\u7684\u4e24\u4e2a o \u5339\u914d\u3002<\/td>\n<\/tr>\n<tr>\n<td>{n,}<\/td>\n<td>n \u662f\u4e00\u4e2a\u975e\u8d1f\u6574\u6570\u3002\u5339\u914d\u81f3\u5c11 n \u6b21\u3002\u4f8b\u5982\uff0c&#8217;o{2,}&#8217; \u4e0d\u5339\u914d &#8220;Bob&#8221; \u4e2d\u7684 &#8220;o&#8221;\uff0c\u5355\u5339\u914d &#8220;foooood&#8221; \u4e2d\u7684\u6240\u6709 o\u3002and matches all the o&#8217;s in &#8220;foooood&#8221;. &#8220;o{1,}&#8221; \u7b49\u540c\u4e8e \u00a0&#8216;o+&#8217;\u3002 &#8216;o{0,}&#8217; \u7b49\u540c\u4e0e &#8216;o*&#8217;\u3002<\/td>\n<\/tr>\n<tr>\n<td>{n,m}<\/td>\n<td>m \u548c n \u90fd\u8981\u662f\u975e\u8d1f\u6574\u6570\uff0cn &lt;= m\u3002\u5339\u914d\u81f3\u5c11 n \u6b21\uff0c\u6700\u591a m \u6b21\u3002\u4f8b\u5982\uff0c&#8221;o{1,3}&#8221; \u4e0e &#8220;fooooood&#8221;\u4e2d\u7684\u524d\u4e09\u4e2a o \u5411\u5339\u914d\u3002 &#8216;o{0,1}&#8217; \u7b49\u540c\u4e8e &#8216;o?&#8217;\u3002\u8981\u6ce8\u610f\u7684\u662f\u4f60\u4e0d\u80fd\u5728\u9017\u53f7\u4e0e\u6570\u5b57\u4e4b\u95f4\u52a0\u4e00\u4e2a\u7a7a\u683c\u3002<\/td>\n<\/tr>\n<tr>\n<td>?<\/td>\n<td>\u5f53\u8fd9\u4e2a\u5b57\u7b26\u7d27\u8ddf\u7740\u4efb\u4f55\u5176\u4ed6\u6570\u91cf\u8bcd (*, +, ?, {n}, {n,}, {n,m}) \u65f6\uff0c\u5339\u914d\u7684\u6a21\u5f0f\u662f\u975e\u8d2a\u5a6a\u3002\u4e00\u4e2a\u975e\u8d2a\u5a6a\u6a21\u5f0f\u5c3d\u53ef\u80fd\u5c11\u5730\u4e0e\u641c\u7d22\u5b57\u7b26\u4e32\u5339\u914d\uff0c\u800c\u9ed8\u8ba4\u7684\u8d2a\u5a6a\u6a21\u5f0f\u5219\u5c3d\u53ef\u80fd\u591a\u5730\u4e0e\u641c\u7d22\u5b57\u7b26\u4e32\u5339\u914d\u3002\u4f8b\u5982\uff0c\u5b57\u7b26\u4e32 &#8220;oooo&#8221;\uff0c&#8217;o+?&#8217; \u5339\u914d\u5355\u4e00\u7684\u4e00\u4e2a &#8220;o&#8221;\uff0c\u800cw &#8216;o+&#8217; \u5339\u914d\u6240\u6709 &#8216;o&#8217;\u3002<\/td>\n<\/tr>\n<tr>\n<td>.<\/td>\n<td>\u4e0e\u4efb\u4f55\u5355\u4e00\u5b57\u7b26\u4e32\u5339\u914d\u3002\u4f8b\u5982\uff0c&#8221;.e&#8221; \u5339\u914d\u4efb\u4f55\u5728 &#8220;e&#8221; \u4e4b\u524d\u7684\u6587\u5b57\uff0c\u5982 &#8220;he&#8221;\uff0c&#8221;we&#8221;\uff0c\u6216 &#8220;me&#8221;\u3002 \u5728 EmEditor Professional \u4e2d\uff0c\u5b83\u5339\u914d\u641c\u7d22\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u9644\u8fd1\u884c\u6587\u672c\u6846\u4e2d\u6307\u5b9a\u8303\u56f4\u5185\u7684\u6362\u884c\u5f53\u6b63\u5219\u8868\u8fbe\u5f0f &#8220;.&#8221; \u5339\u914d\u6362\u884c\u7b26\u590d\u9009\u6846\u88ab\u52fe\u9009\u3002<\/td>\n<\/tr>\n<tr>\n<td>(pattern)<\/td>\n<td>\u62ec\u53f7\u6709\u4e24\u4e2a\u4f5c\u7528: \u628a\u4e00\u4e2a\u683c\u5f0f\u7ec4\u5408\u5230\u4e00\u4e2a\u5b50\u8868\u8fbe\u5f0f\u4e2d\uff0c\u4ee5\u53ca\u6355\u6349\u751f\u6210\u8be5\u5339\u914d\u7684\u683c\u5f0f\u3002\u4f8b\u5982\uff0c\u8868\u8fbe\u5f0f &#8220;(ab)*&#8221; \u5339\u914d\u6240\u6709\u5b57\u7b26\u4e32 &#8220;ababab&#8221;\u3002\u6bcf\u4e00\u4e2a\u5b50\u8868\u8fbe\u5f0f\u7684\u5339\u914d\u88ab\u6355\u6349\u4e3a\u4e00\u4e2a\u4ece\u5de6\u5230\u53f3\u7f16\u53f7\u7684\u5411\u540e\u5f15\u7528\uff08\u5982\u4e0b\uff09\u3002\u8981\u5339\u914d\u62ec\u53f7\u5b57\u7b26\uff0c\u7528 &#8216;(&#8216; \u6216 &#8216;)&#8217;\u3002<\/td>\n<\/tr>\n<tr>\n<td>1 &#8211; 9<\/td>\n<td>\u6307\u5b9a\u4e00\u4e2a\u5411\u540e\u5f15\u7528 &#8211; \u4e00\u4e2a\u5411\u540e\u5f15\u7528\u662f\u4e0a\u4e00\u4e2a\u88ab\u5339\u914d\u7684\u5b50\u8868\u8fbe\u5f0f\u7684\u5f15\u7528\u3002\u5f15\u7528\u7684\u5185\u5bb9\u662f\u4e0e\u5b50\u8868\u8fbe\u5f0f\u76f8\u5339\u914d\u7684\u5185\u5bb9\uff0c\u800c\u4e0d\u662f\u8868\u8fbe\u5f0f\u672c\u8eab\u3002\u4e00\u4e2a\u5411\u540e\u5f15\u7528\u7531\u8f6c\u4e49\u7b26 &#8220;&#8221; \u52a0\u4e00\u4e2a &#8220;1&#8221; \u5230 &#8220;9&#8221; \u7684\u6570\u5b57\u7ec4\u6210\u3002&#8221;1&#8243; \u6307\u7684\u662f\u7b2c\u4e00\u4e2a\u5b50\u8868\u8fbe\u5f0f\uff0c&#8221;2&#8243; \u662f\u7b2c 2 \u4e2a\uff0c\u4ee5\u6b64\u7c7b\u63a8\u3002\u4f8b\u5982\uff0c&#8221;(a)1&#8243; \u4f1a\u6355\u6349 &#8220;a&#8221; \u4e3a\u7b2c\u4e00\u4e2a\u5411\u540e\u5f15\u7528\uff0c\u5e76\u5339\u914d\u4efb\u4f55 &#8220;aa&#8221; \u6587\u672c\u3002\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5411\u540e\u5f15\u7528\u529f\u80fd\u5f53\u4f60\u5728\u641c\u7d22\u83dc\u5355\u4e0b\u9009\u62e9\u66ff\u6362\u529f\u80fd\u65f6\u3002\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5b9a\u4f4d\u4e00\u4e2a\u6587\u672c\u683c\u5f0f\uff0c\u4e0e\u4e4b\u76f8\u5339\u914d\u7684\u6587\u672c\u80fd\u88ab\u4e00\u4e2a\u6307\u5b9a\u7684\u5411\u540e\u5f15\u7528\u66ff\u6362\u3002\u4f8b\u5982\uff0c&#8221;(h)(e)&#8221; \u7684\u8868\u8fbe\u5f0f\u4f1a\u5728\u6587\u672c\u4e2d\u67e5\u627e &#8220;he&#8221;\uff0c\u628a &#8220;1&#8221; \u653e\u5728\u66ff\u6362\u4e3a\u6587\u672c\u6846\u4e2d\u4f1a\u7528 &#8220;h&#8221; \u53d6\u4ee3 &#8220;he&#8221;\uff0c \u800c\u5982\u679c\u662f &#8220;21&#8221; \u7684\u8bdd\uff0c\u5219\u4f1a\u7528 &#8220;eh&#8221; \u53d6\u4ee3 &#8220;he&#8221; \u3002<\/td>\n<\/tr>\n<tr>\n<td>(?:pattern)<\/td>\n<td>\u4e00\u4e2a\u4e0e\u683c\u5f0f\u76f8\u5339\u914d\uff0c\u4f46\u4e0d\u6355\u83b7\u8be5\u5339\u914d\u7684\u5b50\u8868\u8fbe\u5f0f\uff0c\u8fd9\u662f\u4e00\u4e2a\u4e0d\u80fd\u7528\u5411\u540e\u5f15\u7528\u6765\u5b58\u50a8\u7684\u975e\u6355\u83b7\u5339\u914d\u3002\u8fd9\u4e2a\u8868\u8fbe\u5f0f\u901a\u5e38\u548c &#8220;or&#8221; \u5b57\u7b26 (|) \u7ec4\u5408\u4f7f\u7528\u3002\u4f8b\u5982\uff0c&#8217;industr(?:y|ies) \u662f\u4e00\u4e2a\u6bd4 &#8216;industry|industries&#8217; \u66f4\u5b9e\u7528\u7684\u8868\u8fbe\u5f0f\u3002<\/td>\n<\/tr>\n<tr>\n<td>(?=pattern)<\/td>\n<td>\u5b50\u8868\u8fbe\u5f0f\u6267\u884c\u5339\u914d lookahead \u641c\u7d22\uff0c\u67e5\u627e\u4efb\u4f55\u540e\u9762\u8ddf\u7740\u7b26\u5408\u7684\u6a21\u5f0f\u7684\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c&#8221;x(?=abc)&#8221; \u4e0e &#8220;x&#8221;\u76f8\u5339\u914d\u4ec5\u5f53\u5b57\u7b26\u4e32\u540e\u9762\u8ddf\u7740 &#8220;abc&#8221; \u8868\u8fbe\u5f0f\u65f6\u3002 \u8fd9\u662f\u4e00\u4e2a\u4e0d\u80fd\u7528\u5411\u540e\u5f15\u7528\u6765\u5b58\u50a8\u7684\u975e\u6355\u83b7\u5339\u914d\u3002\u6a21\u5f0f\u4e0d\u5305\u542b\u6362\u884c\u3002<\/td>\n<\/tr>\n<tr>\n<td>(?!pattern)<\/td>\n<td>\u5b50\u8868\u8fbe\u5f0f\u6267\u884c\u975e\u5339\u914d lookahead \u641c\u7d22\uff0c\u67e5\u627e\u4efb\u4f55\u540e\u9762\u6ca1\u6709\u8ddf\u7740\u7b26\u5408\u7684\u6a21\u5f0f\u7684\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c&#8221;x(?!abc)&#8221; \u4e0e &#8220;x&#8221; \u76f8\u5339\u914d\u53ea\u6709\u5f53\u8be5\u5b57\u7b26\u4e32\u540e\u9762\u4e0d\u8ddf\u7740 &#8220;abc&#8221; \u8868\u8fbe\u5f0f\u65f6\u3002\u8fd9\u662f\u4e00\u4e2a\u4e0d\u80fd\u7528\u5411\u540e\u5f15\u7528\u6765\u5b58\u50a8\u7684\u975e\u6355\u83b7\u5339\u914d\u3002\u6a21\u5f0f\u4e0d\u5305\u542b\u6362\u884c\u3002<\/td>\n<\/tr>\n<tr>\n<td>(?&lt;=pattern)<\/td>\n<td>\u5b50\u8868\u8fbe\u5f0f\u6267\u884c\u5339\u914d lookbehind \u641c\u7d22\uff0c\u67e5\u627e\u4efb\u4f55\u524d\u9762\u662f\u7b26\u5408\u7684\u6a21\u5f0f\u7684\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c&#8221;(?&lt;=abc)x&#8221; \u5339\u914d\u4e00\u4e2a &#8220;x&#8221; \u53ea\u6709\u5f53\u5b83\u524d\u9762\u6709\u8868\u8fbe\u5f0f &#8220;abc&#8221;\u65f6\u3002\u8fd9\u662f\u4e00\u4e2a\u4e0d\u80fd\u7528\u5411\u540e\u5f15\u7528\u6765\u5b58\u50a8\u7684\u975e\u6355\u83b7\u5339\u914d\u3002\u6a21\u5f0f\u4e0d\u5305\u542b\u6362\u884c\u3002\u6a21\u5f0f\u5fc5\u987b\u662f\u56fa\u5b9a\u957f\u5ea6\u3002<\/td>\n<\/tr>\n<tr>\n<td>(?&lt;!pattern)<\/td>\n<td>\u5b50\u8868\u8fbe\u5f0f\u6267\u884c\u975e\u5339\u914d lookbehind \u641c\u7d22\uff0c\u67e5\u627e\u4efb\u4f55\u524d\u9762\u4e0d\u662f\u7b26\u5408\u6a21\u5f0f\u7684\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c&#8221;(?&lt;!abc)x&#8221; \u5339\u914d &#8220;x&#8221; \u53ea\u6709\u5f53\u5b83\u524d\u9762\u4e0d\u8ddf\u7740 &#8220;abc&#8221; \u8868\u8fbe\u5f0f\u65f6\u3002\u8fd9\u662f\u4e00\u4e2a\u4e0d\u80fd\u7528\u5411\u540e\u5f15\u7528\u6765\u5b58\u50a8\u7684\u975e\u6355\u83b7\u5339\u914d\u3002\u6a21\u5f0f\u4e0d\u5305\u542b\u6362\u884c\u3002\u6a21\u5f0f\u5fc5\u987b\u662f\u56fa\u5b9a\u957f\u5ea6\u3002<\/td>\n<\/tr>\n<tr>\n<td>x|y<\/td>\n<td>\u4e0e x \u6216 y \u5411\u5339\u914d\u3002\u4f8b\u5982\uff0c&#8217;z|food&#8217; \u4e0e &#8220;z&#8221; \u6216 &#8220;food&#8221; \u5339\u914d\u3002'(z|f)ood&#8217; \u4e0e &#8220;zood&#8221; \u6216 &#8220;food&#8221; \u5339\u914d\u3002<\/td>\n<\/tr>\n<tr>\n<td>[xyz]<\/td>\n<td>\u5b57\u7b26\u96c6\u3002\u5339\u914d\u4efb\u4f55\u5728\u62ec\u53f7\u5185\u7684\u5b57\u7b26\u3002\u4f8b\u5982\uff0c'[abc]&#8217; \u4e0e &#8220;plain&#8221; \u4e2d\u7684 &#8216;a&#8217; \u76f8\u5339\u914d\u3002<\/td>\n<\/tr>\n<tr>\n<td>[^xyz]<\/td>\n<td>\u8d1f\u5b57\u7b26\u96c6\u3002\u5339\u914d\u4efb\u4f55\u4e0d\u5728\u62ec\u53f7\u5185\u7684\u5b57\u7b26\u3002\u4f8b\u5982\uff0c[^abc]&#8217; \u4e0e &#8220;plain&#8221; \u4e2d\u7684 &#8216;p&#8217; \u76f8\u5339\u914d\u3002<\/td>\n<\/tr>\n<tr>\n<td>[a-z]<\/td>\n<td>\u5b57\u7b26\u8303\u56f4\u3002\u4e0e\u4efb\u4f55\u6307\u5b9a\u8303\u56f4\u7684\u5b57\u7b26\u76f8\u5339\u914d\u3002\u4f8b\u5982\uff0c'[a-z]&#8217; \u4e0e\u4efb\u4f55 &#8216;a&#8217; \u5230 &#8216;z&#8217; \u7684\u5c0f\u5199\u5b57\u6bcd\u76f8\u5339\u914d\u3002<\/td>\n<\/tr>\n<tr>\n<td>[^a-z]<\/td>\n<td>\u8d1f\u5b57\u7b26\u8303\u56f4\u3002\u4e0e\u4efb\u4f55\u4e0d\u5728\u6307\u5b9a\u8303\u56f4\u5185\u7684\u5b57\u7b26\u76f8\u5339\u914d\u3002\u4f8b\u5982\uff0c'[a-z]&#8217; \u4e0e\u4efb\u4f55\u4e0d\u5728 &#8216;a&#8217; \u5230 &#8216;z&#8217; \u8303\u56f4\u5185\u7684\u5b57\u7b26\u76f8\u5339\u914d\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u5b57\u7b26\u7c7b<\/h3>\n<p>\u4e0b\u9762\u7684\u5b57\u7b26\u7c7b\u88ab\u7528\u5728\u5b57\u7b26\u96c6\u4e2d\uff0c\u4f8b\u5982 &#8220;[:classname:]&#8221;\u3002\u4f8b\u5982\uff0c&#8221;[[:space:]]&#8221; \u662f\u6240\u6709\u7a7a\u767d\u5b57\u7b26\u7684\u96c6\u5408\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"15%\">alnum<\/td>\n<td width=\"85%\">\u4efb\u4f55\u8bed\u8a00\u5b57\u7b26\u53ca\u6570\u5b57: \u5b57\u6bcd\uff0c\u97f3\u8282\u6216\u8868\u610f\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>alpha<\/td>\n<td>\u4efb\u4f55\u8bed\u8a00\u5b57\u7b26: \u5b57\u6bcd\uff0c\u97f3\u8282\u6216\u8868\u610f\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>blank<\/td>\n<td>\u4efb\u4f55\u7a7a\u767d\u5b57\u7b26\uff0c\u7a7a\u683c\u6216 tab\u3002<\/td>\n<\/tr>\n<tr>\n<td>cntrl<\/td>\n<td>\u4efb\u4f55\u63a7\u5236\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>digit<\/td>\n<td>\u4efb\u4f55 0-9 \u7684\u6570\u5b57\u3002<\/td>\n<\/tr>\n<tr>\n<td>graph<\/td>\n<td>\u4efb\u4f55\u56fe\u5f62\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>lower<\/td>\n<td>\u4efb\u4f55 a-z \u7684\u5c0f\u5199\u5b57\u7b26\uff0c\u4ee5\u53ca\u5176\u4ed6\u5c0f\u5199\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>print<\/td>\n<td>\u4efb\u4f55\u53ef\u6253\u5370\u7684\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>punct<\/td>\n<td>\u4efb\u4f55\u6807\u70b9\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>space<\/td>\n<td>\u4efb\u4f55\u7a7a\u767d\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>upper<\/td>\n<td>\u4efb\u4f55 A-Z \u7684\u5927\u5199\u5b57\u6bcd\uff0c\u4ee5\u53ca\u5176\u4ed6\u5927\u5199\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>xdigit<\/td>\n<td>\u4efb\u4f55\u5341\u516d\u8fdb\u5236\u6570\u5b57\u5b57\u7b26\uff0c0-9\uff0ca-f \u8fd8\u6709 A-F\u3002<\/td>\n<\/tr>\n<tr>\n<td>word<\/td>\n<td>\u4efb\u4f55\u5355\u8bcd\u5b57\u7b26 &#8211; \u6240\u6709\u5b57\u6bcd\u6570\u5b57\u5b57\u7b26\u4ee5\u53ca\u4e0b\u5212\u7ebf\u3002<\/td>\n<\/tr>\n<tr>\n<td>unicode<\/td>\n<td>\u4efb\u4f55\u5927\u4e8e 255 \u4ee3\u7801\u7684\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u5355\u4e00\u5b57\u7b26\u8f6c\u4e49\u5e8f\u5217<\/h3>\n<p>\u4e0b\u5217\u8f6c\u4e49\u5e8f\u5217\u662f\u5355\u4e00\u5b57\u7b26\u7684\u522b\u540d:<\/p>\n<table>\n<tbody>\n<tr>\n<td>0x07<\/td>\n<td>a<\/td>\n<td>\u54cd\u94c3\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>0x0C<\/td>\n<td>f<\/td>\n<td>\u6362\u9875 (FF)\u3002<\/td>\n<\/tr>\n<tr>\n<td>0x0A<\/td>\n<td>n<\/td>\n<td>\u6362\u884c\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>0x0D<\/td>\n<td>r<\/td>\n<td>\u56de\u8f66\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>0x09<\/td>\n<td>t<\/td>\n<td>Tab \u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>0x0B<\/td>\n<td>v<\/td>\n<td>\u5782\u76f4 tab\u3002<\/td>\n<\/tr>\n<tr>\n<td>0x1B<\/td>\n<td>e<\/td>\n<td>ASCII \u8f6c\u4e49\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>0dd<\/td>\n<td>\u0000dd<\/td>\n<td>\u516b\u8fdb\u5236\u5b57\u7b26\u4ee3\u7801\uff0cdd \u662f\u4e00\u4e2a\u6216\u591a\u4e2a\u516b\u8fdb\u5236\u6570\u5b57\u3002<\/td>\n<\/tr>\n<tr>\n<td>0xXX<\/td>\n<td>xXX<\/td>\n<td>\u4e00\u4e2a\u5341\u516d\u8fdb\u5236\u5b57\u7b26\u4ee3\u7801\uff0cXX \u662f\u4e00\u4e2a\u6216\u591a\u4e2a\u5341\u516d\u8fdb\u5236\u6570\u5b57 \uff08\u4e00\u4e2a Unicode \u5b57\u7b26\uff09\u3002<\/td>\n<\/tr>\n<tr>\n<td>0xXXXX<\/td>\n<td>x{XXXX}<\/td>\n<td>\u4e00\u4e2a\u5341\u516d\u8fdb\u5236\u5b57\u7b26\u4ee3\u7801\uff0cXXXX \u662f\u4e00\u4e2a\u6216\u591a\u4e2a\u5341\u516d\u8fdb\u5236\u6570\u5b57 \uff08\u4e00\u4e2a Unicode \u5b57\u7b26\uff09\u3002<\/td>\n<\/tr>\n<tr>\n<td>Z-&#8216;@&#8217;<\/td>\n<td>cZ Z-&#8216;@&#8217;<\/td>\n<td>\u4e00\u4e2a ASCII \u8f6c\u4e49\u5e8f\u5217\u63a7\u5236-Z\uff0c\u5176\u4e2d Z \u662f\u4efb\u4e00 ASCII \u5b57\u7b26\u5927\u4e8e\u6216\u7b49\u4e8e &#8216;@&#8217; \u7684\u5b57\u7b26\u4ee3\u7801\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u5355\u8bcd\u8fb9\u754c<\/h3>\n<p>\u4e0b\u5217\u8f6c\u4e49\u5e8f\u5217\u4e0e\u5355\u8bcd\u7684\u8fb9\u754c\u76f8\u5339\u914d:<\/p>\n<table>\n<tbody>\n<tr>\n<td>&lt;<\/td>\n<td>\u5339\u914d\u4e00\u4e2a\u5355\u8bcd\u7684\u5f00\u5934\u3002(\u4ec5\u9650 Boost.Regex)<\/td>\n<\/tr>\n<tr>\n<td>&gt;<\/td>\n<td>\u5339\u914d\u4e00\u4e2a\u5355\u8bcd\u7684\u7ed3\u5c3e\u3002(\u4ec5\u9650 Boost.Regex)<\/td>\n<\/tr>\n<tr>\n<td>b<\/td>\n<td>\u5339\u914d\u5355\u8bcd\u7684\u8fb9\u754c\uff08\u4e00\u4e2a\u5355\u8bcd\u7684\u5f00\u5934\u6216\u7ed3\u5c3e\uff09\u3002<\/td>\n<\/tr>\n<tr>\n<td>B<\/td>\n<td>\u4ec5\u5f53\u4e0d\u5728\u5355\u8bcd\u8fb9\u754c\u5904\u65f6\u5339\u914d\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u5b57\u7b26\u7c7b\u7684\u8f6c\u4e49\u5e8f\u5217<\/h3>\n<p>\u4e0b\u5217\u8f6c\u4e49\u5e8f\u5217\u80fd\u88ab\u7528\u6765\u8868\u793a\u6574\u4e2a\u5b57\u7b26\u7c7b:<\/p>\n<table>\n<tbody>\n<tr>\n<td>w<\/td>\n<td>\u4efb\u4f55\u5355\u8bcd\u5b57\u7b26 &#8211; \u6240\u6709\u5b57\u6bcd\u6570\u5b57\u5b57\u7b26\u52a0\u4e0b\u5212\u7ebf\u3002<\/td>\n<\/tr>\n<tr>\n<td>W<\/td>\n<td>w \u7684\u8865\u96c6 &#8211; \u67e5\u627e\u4efb\u4f55\u975e\u5355\u8bcd\u7684\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>s<\/td>\n<td>\u4efb\u4f55\u7a7a\u767d\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>S<\/td>\n<td>s \u7684\u8865\u96c6\u3002<\/td>\n<\/tr>\n<tr>\n<td>d<\/td>\n<td>\u4efb\u4f55 0-9 \u7684\u6570\u5b57\u3002<\/td>\n<\/tr>\n<tr>\n<td>D<\/td>\n<td>d \u7684\u8865\u96c6\u3002<\/td>\n<\/tr>\n<tr>\n<td>l<\/td>\n<td>\u4efb\u4f55 a-z \u7684\u5c0f\u5199\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>L<\/td>\n<td>l \u7684\u8865\u96c6\u3002<\/td>\n<\/tr>\n<tr>\n<td>u<\/td>\n<td>\u4efb\u4f55 A-Z \u7684\u5927\u5199\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>U<\/td>\n<td>u \u8865\u96c6\u3002<\/td>\n<\/tr>\n<tr>\n<td>C<\/td>\n<td>\u4efb\u4f55\u5355\u4e00\u5b57\u7b26\uff0c\u7b49\u540c\u4e0e &#8216;.&#8217;\u3002<\/td>\n<\/tr>\n<tr>\n<td>Q<\/td>\n<td>\u5f00\u59cb\u5f15\u8ff0\u8fd0\u7b97\u7b26\uff0c\u4efb\u4f55\u8ddf\u5728\u8be5\u7b26\u53f7\u540e\u9762\u7684\u5185\u5bb9\u4f1a\u88ab\u4f5c\u4e3a\u4e00\u4e2a\u6587\u672c\u5b57\u7b26\u76f4\u5230\u627e\u5230 E \u7ed3\u675f\u5f15\u8ff0\u8fd0\u7b97\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td>E<\/td>\n<td>\u7ed3\u675f\u5f15\u8ff0\u8fd0\u7b97\u7b26\uff0c\u7ec8\u6b62\u4e00\u4e2a\u7531 Q \u5f00\u59cb\u7684\u5e8f\u5217\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u6307\u5b9a\u6362\u884c\u7b26<\/h2>\n<p>\u4e0b\u5217\u8868\u683c\u663e\u793a\u5982\u4f55\u6307\u5b9a\u6362\u884c\u7b26\u3002<\/p>\n<h3>\u201c\u67e5\u627e\u201d\u5bf9\u8bdd\u6846\uff0c\u201c\u66ff\u6362\u201d\u5bf9\u8bdd\u6846 &#8211; \u67e5\u627e\uff0c\u66ff\u6362\u4e3a<\/h3>\n<table>\n<tbody>\n<tr>\n<td>\u52fe\u9009\u201c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u201d<\/td>\n<td>n \u6216 rn\uff08\u76f8\u540c\u542b\u4e49\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u4e0d\u52fe\u9009\u201c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u201d\uff08\u4f7f\u7528\u8f6c\u4e49\u5e8f\u5217\uff09<\/td>\n<td>n \u6216 rn\uff08\u76f8\u540c\u542b\u4e49\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u201c\u5728\u6587\u4ef6\u4e2d\u67e5\u627e\u201d\u5bf9\u8bdd\u6846\uff0c\u201c\u5728\u6587\u4ef6\u4e2d\u66ff\u6362\u201d\u5bf9\u8bdd\u6846 &#8211; \u67e5\u627e<\/h3>\n<table>\n<tbody>\n<tr>\n<td>\u52fe\u9009\u201c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u201d<\/td>\n<td>rn\uff0cr\uff0c\u6216 n\uff08\u53d6\u51b3\u4e8e\u5b9e\u9645\u7684\u6362\u884c\u65b9\u5f0f\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u4e0d\u52fe\u9009\u201c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u201d\uff08\u4f7f\u7528\u8f6c\u4e49\u5e8f\u5217\uff09<\/td>\n<td>n \u6216 rn\uff08\u76f8\u540c\u542b\u4e49\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u201c\u5728\u6587\u4ef6\u4e2d\u66ff\u6362\u201d\u5bf9\u8bdd\u6846 &#8211; \u66ff\u6362\u4e3a<\/h3>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td>\u52fe\u9009\u201c\u4fdd\u6301\u4fee\u6539\u7684\u6587\u4ef6\u6253\u5f00\u201d<\/td>\n<td>\u4e0d\u52fe\u9009\u201c\u4fdd\u6301\u4fee\u6539\u7684\u6587\u4ef6\u6253\u5f00\u201d<\/td>\n<\/tr>\n<tr>\n<td>\u52fe\u9009\u201c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u201d<\/td>\n<td>rn\uff0cr\uff0c\u6216 n\uff08\u53d6\u51b3\u4e8e\u5b9e\u9645\u7684\u6362\u884c\u65b9\u5f0f\uff09<\/td>\n<td>rn\uff0cr\uff0c\u6216 n\uff08\u53d6\u51b3\u4e8e\u5b9e\u9645\u7684\u6362\u884c\u65b9\u5f0f\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u4e0d\u52fe\u9009\u201c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u201d\uff08\u4f7f\u7528\u8f6c\u4e49\u5e8f\u5217\uff09<\/td>\n<td>n \u6216 rn\uff08\u76f8\u540c\u542b\u4e49\uff09<\/td>\n<td>rn\uff0cr\uff0c\u6216 n\uff08\u53d6\u51b3\u4e8e\u5b9e\u9645\u7684\u6362\u884c\u65b9\u5f0f\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Tips<\/h3>\n<ul>\n<li>\u5982\u9047 &#8220;n \u6216 rn\uff08\u76f8\u540c\u542b\u4e49\uff09&#8221;\uff0c\u4f60\u65e0\u6cd5\u901a\u8fc7\u5206\u8fa8 CR+LF\uff0c\u4ec5 CR\uff0c\u4ee5\u53ca \u4ec5 LF \u6765\u641c\u7d22\u6362\u884c\u3002<\/li>\n<li>\u5982\u9047 &#8220;rn\uff0cr\uff0c\u6216 n\uff08\u53d6\u51b3\u4e8e\u5b9e\u9645\u7684\u6362\u884c\u65b9\u5f0f\uff09&#8221;\uff0c\u4f60\u9700\u8981\u6307\u5b9a &#8220;rn&#8221; \u5982\u679c\u5b9e\u9645\u7684\u6362\u884c\u662f CR+LF\uff0c&#8221;r&#8221; \u5982\u679c\u662f\u4ec5 CR\uff0c\u6216 &#8220;n&#8221; \u5982\u679c\u4ec5 LF\u3002\u901a\u5e38\uff0cCR+LF (rn) \u88ab\u7528\u5728 Windows \u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0cCR (r) \u88ab\u7528\u5728 Macintosh \u4e0a\uff0c\u8fd8\u6709 LF (n) \u88ab\u7528\u4e8e Unix\u3002<\/li>\n<\/ul>\n<h3>\u6ce8\u610f\u4e8b\u9879<\/h3>\n<ul>\n<li>\u5728\u5728\u6587\u4ef6\u4e2d\u67e5\u627e\u548c\u5728\u6587\u4ef6\u4e2d\u66ff\u6362\u4e2d\uff0c\u56de\u8f66\u7b26 (r) \u4ee5\u53ca\u6362\u884c\u7b26 (n) \u5fc5\u987b\u4ed4\u7ec6\u6307\u660e\u3002\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u8003\u6307\u5b9a\u6362\u884c\u3002<\/li>\n<li>\u4e3a\u4e86\u4e00\u4e9b\u8f6c\u4e49\u5e8f\u5217\u80fd\u5728 EmEditor \u4e2d\u8fd0\u4f5c\uff0c\u4f8b\u5982 &#8220;l&#8221;\uff0c &#8220;u&#8221; \u4ee5\u53ca\u5b83\u4eec\u7684\u8865\u96c6\uff0c\u5fc5\u987b\u9009\u62e9\u533a\u5206\u5927\u5c0f\u5199\u7684\u9009\u9879\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u7f19\u54e5\u54e5\u975e\u5e38\u61d2\uff0c\u5f53\u9047\u5230\u91cd\u590d\u7684\u4e8b\u60c5\u65f6\uff0c\u5c31\u559c\u6b22\u901a\u8fc7\u6279\u91cf\u5904\u7406\u6765\u89e3\u51b3\uff0c\u800c\u6587\u672c\u7528\u7684\u662f EmEditor \u7a0b\u5e8f\uff0cEmEditor \u6b63\u5219\u8868\u8fbe\u5f0f\u8bed\u8a00\u57fa\u4e8e Perl \u6b63\u5219\u8868\u8fbe\u5f0f\u8bed\u6cd5\uff0c\u6240\u4ee5\u901a\u8fc7\u638c\u63e1EmEditor\u6b63\u5219\u8868\u8fbe\u5f0f\u8bed\u6cd5\uff0c\u5927\u5927\u63d0\u5347\u5de5\u4f5c\u6548\u7387\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[9542],"class_list":["post-192543","post","type-post","status-publish","format-standard","hentry","tag-lpha"],"_links":{"self":[{"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/posts\/192543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/comments?post=192543"}],"version-history":[{"count":0,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/posts\/192543\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/media?parent=192543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/categories?post=192543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/tags?post=192543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}