{"id":1905,"date":"2013-11-12T20:50:48","date_gmt":"2013-11-12T12:50:48","guid":{"rendered":"http:\/\/www.huzs.top\/?p=1905"},"modified":"2013-11-21T22:36:35","modified_gmt":"2013-11-21T14:36:35","slug":"%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/www.huzs.top\/?p=1905","title":{"rendered":"\u6b63\u5219\u8868\u8fbe\u5f0f"},"content":{"rendered":"<p><strong>1\u3001PHP\u4e2d\u4e24\u4e2a\u5e38\u7528\u7684\u6b63\u5219\u51fd\u6570<\/strong><br \/>preg_match \u6b63\u5219\u51fd\u6570\uff0c\u4ee5perl\u8bed\u8a00\u4e3a\u57fa\u7840<br \/><code>preg_match ( mode, string subject , array matches )<\/code><br \/>ereg \u6b63\u5219\u51fd\u6570\uff0c\u4ee5POSIX\u57fa\u7840 \uff08Unix \u3001 Script\uff09<br \/><code>ereg ( mode, string subject , array regs )<\/code><\/p>\n<p><strong>2\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u5305\u62ec\u7684\u5143\u7d20<\/strong><br \/>(1)\u3001<strong>\u539f\u5b50<\/strong>\uff08\u666e\u901a\u5b57\u7b26\uff1aa-z A-Z 0-9 \u3001\u539f\u5b50\u8868\u3001 \u8f6c\u4e49\u5b57\u7b26\uff09<br \/>\u2460a-z A-Z _ 0-9  \u3000\u3000 \/\/\u6700\u5e38\u89c1\u7684\u5b57\u7b26<br \/>\u2461(abc) (skd)  \u3000\u3000\u3000\/\/\u7528\u5706\u62ec\u53f7\u5305\u542b\u8d77\u6765\u7684\u5355\u5143\u7b26\u53f7<br \/>\u2462[abcs] [^abd]\u3000\u3000 \/\/\u7528\u65b9\u62ec\u53f7\u5305\u542b\u7684\u539f\u5b50\u8868\uff0c\u539f\u5b50\u8868\u4e2d\u7684^\u4ee3\u8868\u6392\u9664\u6216\u76f8\u53cd\u5185\u5bb9<br \/>\u2463\u8f6c\u4e49\u5b57\u7b26<br \/>\\d  \u5305\u542b\u6240\u6709\u6570\u5b57[0-9]<br \/>\\D  \u9664\u6240\u6709\u6570\u5b57\u5916[^0-9]<br \/>\\w  \u5305\u542b\u6240\u6709\u82f1\u6587\u5b57\u7b26[a-zA-Z_0-9]<br \/>\\W  \u9664\u6240\u6709\u82f1\u6587\u5b57\u7b26\u5916[^a-zA-Z_0-9]\u000b  \\s   \u5305\u542b\u7a7a\u767d\u533a\u57df\u5982\u56de\u8f66\u3001\u6362\u884c\u3001\u5206\u9875\u7b49 [\\f\\n\\r]<br \/>\u7b49\u7b49&#8230;<!--more--><\/p>\n<p>(2)\u3001<strong>\u5143\u5b57\u7b26<\/strong> \uff08\u6709\u7279\u6b8a\u529f\u80fd\u7684\u5b57\u7b26\uff09<br \/>.  \u3000<strong>\u5339\u914d\u5185\u5bb9<\/strong>\u76840\u6b211\u6b21\u6216\u591a\u6b21\uff0c\u4f46\u4e0d\u5305\u542b\u56de\u8f66\u6362\u884c<br \/>*  \u3000\u5339\u914d\u524d\u4e00\u4e2a\u5185\u5bb9\u76840\u6b211\u6b21\u6216\u591a\u6b21<br \/>+ \u3000 \u5339\u914d\u524d\u4e00\u4e2a\u5185\u5bb9\u76841\u6b21\u6216\u591a\u6b21\uff0c\u4e0d\u80fd\u5339\u914d0\u6b21<br \/>\uff1f\u3000 \u5339\u914d\u524d\u4e00\u4e2a\u5185\u5bb9\u76840\u6b21\u62161\u6b21<br \/>|  \u3000\u9009\u62e9\u5339\u914d\u7c7b\u4f3cPHP\u4e2d\u7684| \uff08\u56e0\u4e3a\u8fd9\u4e2a\u8fd0\u7b97\u7b26\u5408\u662f\u5f31\u7c7b\u578b\u5bfc\u81f4\u524d\u9762\u6700\u4e3a\u6574\u4f53\u5339\u914d\uff09<br \/>^ \u3000 \u5339\u914d\u5b57\u7b26\u4e32\u9996\u90e8\u5185\u5bb9<br \/>$  \u3000\u5339\u914d\u5b57\u7b26\u4e32\u5c3e\u90e8\u5185\u5bb9<br \/>\\b \u3000\u5339\u914d\u5355\u8bcd\u8fb9\u754c\uff0c\u8fb9\u754c\u53ef\u4ee5\u662f\u7a7a\u683c\u6216\u8005\u7279\u6b8a\u7b26\u5408<br \/>\\B \u3000\u5339\u914d\u9664\u5e26\u5355\u8bcd\u8fb9\u754c\u610f\u5916\u5185\u5bb9<br \/>{m} \u3000  \u5339\u914d\u524d\u4e00\u4e2a\u5185\u5bb9\u7684\u91cd\u590d\u6b21\u6570\u4e3aM\u6b21<br \/>{m,} \u3000 \u5339\u914d\u524d\u4e00\u4e2a\u5185\u5bb9\u7684\u91cd\u590d\u6b21\u6570\u5927\u4e8e\u7b49\u4e8eM\u6b21<br \/>{m,n} \u3000\u5339\u914d\u524d\u4e00\u4e2a\u5185\u5bb9\u7684\u91cd\u590d\u6b21\u6570M\u6b21\u5230N\u6b21<br \/>( ) \u3000\u3000\u5408\u5e76\u6574\u4f53\u5339\u914d\uff0c\u5e76\u653e\u5165\u5185\u5b58\uff0c\u53ef\u4f7f\u7528\\\\1 \\\\2\u2026\u4f9d\u6b21\u83b7\u53d6<\/p>\n<p>(3)\u3001<strong>\u6a21\u5f0f\u4fee\u6b63\u7b26<\/strong> \uff08\u7cfb\u7edf\u5185\u7f6e\u90e8\u5206\u5b57\u7b26 i \u3001m\u3001S\u3001U\u2026\uff09<br \/><strong>\u6a21\u5f0f\u4fee\u6b63\u7b26,<\/strong>\u6a21\u5f0f\u4fee\u6b63\u7b26\u662f\u4e3a\u6b63\u5219\u8868\u8fbe\u5f0f\u589e\u5f3a\u548c\u8865\u5145\u7684\u4e00\u4e2a\u529f\u80fd\uff0c\u4f7f\u7528\u5728\u6b63\u5219\u4e4b\u5916<br \/><strong>\u6a21\u5f0f\u4fee\u6b63\u7b26\u7684\u683c\u5f0f\uff1a\/ \u6b63\u5219 \/ U  <\/strong><br \/>\u5e38\u7528\u4fee\u6b63\u7b26\uff1a<br \/>i \u6b63\u5219\u5185\u5bb9\u5728\u5339\u914d\u65f6\u5019\u4e0d\u533a\u5206\u5927\u5c0f\u5199\uff08\u9ed8\u8ba4\u662f\u533a\u5206\u7684\uff09<br \/>m \u5728\u5339\u914d\u9996\u5185\u5bb9\u6216\u8005\u5c3e\u5185\u5bb9\u65f6\u5019\u91c7\u7528\u591a\u884c\u8bc6\u522b\u5339\u914d<br \/>S \u5c06\u8f6c\u4e49\u56de\u8f66\u53d6\u6d88\u662f\u4e3a\u5355\u884c\u5339\u914d\u5982. \u5339\u914d\u7684\u65f6\u5019<br \/>x \u5ffd\u7565\u6b63\u5219\u4e2d\u7684\u7a7a\u767d<br \/>A \u5f3a\u5236\u4ece\u5934\u5f00\u59cb\u5339\u914d<br \/>D \u5f3a\u5236$\u5339\u914d\u5c3e\u90e8\u65e0\u4efb\u4f55\u5185\u5bb9 \\n<br \/>U \u7981\u6b62\u8d2a\u5a6a\u5339\u914d \u53ea\u8ddf\u8e2a\u5230\u6700\u8fd1\u7684\u4e00\u4e2a\u5339\u914d\u7b26\u5e76\u7ed3\u675f\uff0c<br \/>\u5e38\u7528\u5728\u91c7\u96c6\u7a0b\u5e8f\u4e0a\u7684\u6b63\u5219\u8868\u8fbe\u5f0f<\/p>\n<p><strong>\u8fd0\u7b97\u987a\u5e8f\u9075\u5faa\u4ece\u5de6\u5230\u2192\u53f3\u7684\u8fd0\u7b97\u89c4\u5219<\/strong><br \/>1st ( )  \u5706\u62ec\u53f7\u56e0\u4e3a\u662f\u5185\u5b58\u5904\u7406\u6240\u4ee5\u6700\u9ad8<br \/>2st * \uff1f +  { } \u91cd\u590d\u5339\u914d\u5185\u5bb9\u5176\u6b21<br \/>3st ^ $ \\b \u8fb9\u754c\u5904\u7406\u7b2c\u4e09<br \/>4st |  \u6761\u4ef6\u5904\u7406\u7b2c\u56db<br \/>5st \u6700\u540e\u6309\u7167\u8fd0\u7b97\u987a\u5e8f\u8ba1\u7b97\u5339\u914d<\/p>\n<p><strong>\u5339\u914d\u529f\u80fd<\/strong><br \/>preg_match_all \u5168\u90e8\u5339\u914d\u51fd\u6570<br \/><code>preg_match_all ( string pattern, string subject, array matches [, int flags] )<\/code><br \/>\u5bf9\u7ed3\u679c\u6392\u5e8f\u4f7f $matches[0] \u4e3a\u5168\u90e8\u6a21\u5f0f\u5339\u914d\u7684\u6570\u7ec4<\/p>\n<pre><?php<br>$str=\"aaa<bbb>ccc<dddd>eee\";<br>$mode=\"\/<.*>\/U\";<br>if(preg_match_all($mode,$str,$arr)){<br>echo \"\u5339\u914d\u6210\u529f\".print_r($arr);<br>}else{<br>echo \"\u5339\u914d\u4e0d\u6210\u529f\";<br>}<br>?><\/pre>\n<p><strong>\u66ff\u6362\u529f\u80fd  <\/strong><br \/>preg_replace \u6b63\u5219\u66ff\u6362\u51fd\u6570<br \/><code>preg_replace ( mixed pattern, mixed replacement, mixed subject [, int limit] )<\/code><br \/>\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u66ff\u6362\u76f8\u5173\u5185\u5bb9\uff0c\u7c7b\u4f3c\u4e4b\u524d\u5b66\u8fc7\u7684str_replace\u5b57\u7b26\u4e32\u66ff\u6362\uff0c\u4f46<br \/>\u529f\u80fd\u8981\u5f3a\u4e8e\u5b83\u3002<br \/>\u63d0\u793a\uff1a1\u3001\u66ff\u6362\u5185\u5bb9\u53ef\u4ee5\u662f\u4e00\u4e2a\u6b63\u5219\u4e5f\u53ef\u4ee5\u662f\u6570\u7ec4\u6b63\u5219<br \/>2\u3001\u66ff\u6362\u5185\u5bb9\u53ef\u4ee5\u901a\u8fc7\u4fee\u6b63\u7b26e\u6765\u89e3\u51b3\u66ff\u6362\u6267\u884c\u5185\u5bb9<\/p>\n<pre><?php<br>$str=\"aaa<bbb>ccc<dddd>eee\";<br>$mode=\"\/<.*>\/U\";<br>echo preg_replace($mode,\"\u66ff\u6362\u5185\u5bb9\",$str);<br>?><\/pre>\n<p>\u6570\u7ec4\u6b63\u5219\u66ff\u6362<\/p>\n<pre><?php<br>$str=\"aaa<bbb>ccc<dddd>eee\";<br>$mode=array(\"\/<bbb>\/\",\"\/<dddd>\/\");<br>$m=array(\"\/<yyy>\/\",\"\/<mmmm>\/\");<br>echo preg_replace($mode,$m,$str);<br>?><\/pre>\n<p>md5\u6b63\u5219\u66ff\u6362<\/p>\n<pre><?php<br>$str=\"\u5bc6\u78011:bbb\\n\u5bc6\u78012:BBB\";<br>$mode=\"\/(bbb)\/ie\";<br>\/\/\u53c2\u65701\u4e3a\u6b63\u5219\u66ff\u6362\u4e00\u6b21\uff0c\u5982\u8fc72\uff0c\u8fd9\u8fde\u540e\u9762\u7684\u5927\u5199b\u4e5f\u6b63\u5219\u5339\u914d\u4e86<br>\/\/preg_replace($mode,\"md5(\\\\1)\",$str,1);<br>echo preg_replace($mode,\"md5(\\\\1)\",$str);<br>?><\/pre>\n<p><strong>\u5206\u5272\u529f\u80fd  <\/strong><br \/>preg_split \u6b63\u5219\u5207\u5272<br \/>preg_split ( string pattern, string subject [, int limit [, int flags]] )<br \/>\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5207\u5272\u76f8\u5173\u5185\u5bb9\uff0c\u7c7b\u4f3c\u4e4b\u524d\u5b66\u8fc7\u7684explode\u5207\u5272\u51fd\u6570\uff0c\u4f46explode<br \/>\u53ea\u80fd\u6309\u7167\u4e00\u79cd\u65b9\u5f0f\u5207\u5272\u6709\u5c40\u9650\u6027\u3002<\/p>\n<pre><?php<br>$str=\"asd,sdsa,efsd,we\u3002dce,sec\";<br>$mode=\"\/[,.\u3002]\/\";<br>$arr=preg_split($mode,$str);<br>for($i=0;$i<count($arr);$i++){<br>echo $arr[$i].\"<br>\";<br>}<br>?> <\/pre>\n<p>&nbsp;<\/p>\n<p><strong>\u5e38\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/strong><br \/>\u5339\u914d\u4e2d\u6587\u5b57\u7b26\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a [\\u4e00-\\u9fa5]<br \/>\u8bc4\u6ce8\uff1a\u5339\u914d\u4e2d\u6587\u8fd8\u771f\u662f\u4e2a\u5934\u75bc\u7684\u4e8b\uff0c\u6709\u4e86\u8fd9\u4e2a\u8868\u8fbe\u5f0f\u5c31\u597d\u529e\u4e86\u54e6<br \/>\u83b7\u53d6\u65e5\u671f\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a\\d{4}[\u5e74|\\-|\\.]\\d{\\1-\\12}[\u6708|\\-|\\.]\\d{\\1-\\31}\u65e5?<br \/>\u8bc4\u6ce8\uff1a\u53ef\u7528\u6765\u5339\u914d\u5927\u591a\u6570\u5e74\u6708\u65e5\u4fe1\u606f\u3002<br \/>\u5339\u914d\u53cc\u5b57\u8282\u5b57\u7b26(\u5305\u62ec\u6c49\u5b57\u5728\u5185)\uff1a[^\\x00-\\xff]<br \/>\u8bc4\u6ce8\uff1a\u53ef\u4ee5\u7528\u6765\u8ba1\u7b97\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\uff08\u4e00\u4e2a\u53cc\u5b57\u8282\u5b57\u7b26\u957f\u5ea6\u8ba12\uff0cASCII\u5b57\u7b26\u8ba11\uff09<br \/>\u5339\u914d\u7a7a\u767d\u884c\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a\\n\\s*\\r<br \/>\u8bc4\u6ce8\uff1a\u53ef\u4ee5\u7528\u6765\u5220\u9664\u7a7a\u767d\u884c<br \/>\u5339\u914dHTML\u6807\u8bb0\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a&lt;(\\S*?)[^&gt;]*&gt;.*?&lt;\/&gt;|&lt;.*? \/&gt;<br \/>\u8bc4\u6ce8\uff1a\u7f51\u4e0a\u6d41\u4f20\u7684\u7248\u672c\u592a\u7cdf\u7cd5\uff0c\u4e0a\u9762\u8fd9\u4e2a\u4e5f\u4ec5\u4ec5\u80fd\u5339\u914d\u90e8\u5206\uff0c\u5bf9\u4e8e\u590d\u6742\u7684\u5d4c\u5957\u6807\u8bb0\u4f9d\u65e7\u65e0\u80fd\u4e3a\u529b<br \/>\u5339\u914d\u9996\u5c3e\u7a7a\u767d\u5b57\u7b26\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a^\\s*|\\s*$<br \/>\u8bc4\u6ce8\uff1a\u53ef\u4ee5\u7528\u6765\u5220\u9664\u884c\u9996\u884c\u5c3e\u7684\u7a7a\u767d\u5b57\u7b26(\u5305\u62ec\u7a7a\u683c\u3001\u5236\u8868\u7b26\u3001\u6362\u9875\u7b26\u7b49\u7b49)\uff0c\u975e\u5e38\u6709\u7528\u7684\u8868\u8fbe\u5f0f<br \/>\u5339\u914dEmail\u5730\u5740\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*<br \/>\u8bc4\u6ce8\uff1a\u8868\u5355\u9a8c\u8bc1\u65f6\u5f88\u5b9e\u7528<br \/>\u5339\u914d\u7f51\u5740URL\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a[a-zA-z]+:\/\/[^\\s]*<br \/>\u8bc4\u6ce8\uff1a\u7f51\u4e0a\u6d41\u4f20\u7684\u7248\u672c\u529f\u80fd\u5f88\u6709\u9650\uff0c\u4e0a\u9762\u8fd9\u4e2a\u57fa\u672c\u53ef\u4ee5\u6ee1\u8db3\u9700\u6c42<br \/>\u5339\u914d\u5e10\u53f7\u662f\u5426\u5408\u6cd5(\u5b57\u6bcd\u5f00\u5934\uff0c\u5141\u8bb85-16\u5b57\u8282\uff0c\u5141\u8bb8\u5b57\u6bcd\u6570\u5b57\u4e0b\u5212\u7ebf)\uff1a^[a-zA-Z][a-zA-Z0-9_]{4,15}$<br \/>\u8bc4\u6ce8\uff1a\u8868\u5355\u9a8c\u8bc1\u65f6\u5f88\u5b9e\u7528<br \/>\u5339\u914d\u56fd\u5185\u7535\u8bdd\u53f7\u7801\uff1a\\d{4}-\\d{7}|\\d{3}-\\d{8}<br \/>\u8bc4\u6ce8\uff1a\u5339\u914d\u5f62\u5f0f\u5982 0511 &#8211; 4405222 \u6216 021 &#8211; 87888822<br \/>\u5339\u914d\u817e\u8bafQQ\u53f7\uff1a[1-9][0-9]{4,11} \u6216\u8005 [1-9][0-9]\\{4,\\}<br \/>\u8bc4\u6ce8\uff1a\u817e\u8bafQQ\u53f7\u4ece1000 0 \u5f00\u59cb<br \/>\u5339\u914d\u4e2d\u56fd\u90ae\u653f\u7f16\u7801\uff1a[1-9]\\d{5}(?!\\d)<br \/>\u8bc4\u6ce8\uff1a\u4e2d\u56fd\u90ae\u653f\u7f16\u7801\u4e3a6\u4f4d\u6570\u5b57<br \/>\u5339\u914d\u8eab\u4efd\u8bc1\uff1a\\d{17}[\\d|X]|\\d{15}<br \/>\u8bc4\u6ce8\uff1a\u4e2d\u56fd\u7684\u8eab\u4efd\u8bc1\u4e3a15\u4f4d\u621618\u4f4d<br \/>\u5339\u914dip\u5730\u5740\uff1a((2[0-4]\\d|25[0-5]|[01]?\\d\\d?)\\.){3}(2[0-4]\\d|25[0-5]|[01]?\\d\\d?)\u3002<br \/>\u8bc4\u6ce8\uff1a\u63d0\u53d6ip\u5730\u5740\u65f6\u6709\u7528<br \/>\u5339\u914d\u7279\u5b9a\u6570\u5b57\uff1a<br \/>^[1-9]\\d*$\u3000\/\/\u5339\u914d\u6b63\u6574\u6570<br \/>^-[1-9]\\d*$ \/\/\u5339\u914d\u8d1f\u6574\u6570<br \/>^-?[1-9]\\d*$\u3000\/\/\u5339\u914d\u6574\u6570<br \/>^[1-9]\\d*|0$\u3000\/\/\u5339\u914d\u975e\u8d1f\u6574\u6570\uff08\u6b63\u6574\u6570 + 0\uff09<br \/>^-[1-9]\\d*|0$\u3000\/\/\u5339\u914d\u975e\u6b63\u6574\u6570\uff08\u8d1f\u6574\u6570 + 0\uff09<br \/>^[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*$\u3000\/\/\u5339\u914d\u6b63\u6d6e\u70b9\u6570<br \/>^-([1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*)$\u3000\/\/\u5339\u914d\u8d1f\u6d6e\u70b9\u6570<br \/>^-?([1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*|0?\\.0+|0)$\u3000\/\/\u5339\u914d\u6d6e\u70b9\u6570<br \/>^[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*|0?\\.0+|0$\u3000\/\/\u5339\u914d\u975e\u8d1f\u6d6e\u70b9\u6570\uff08\u6b63\u6d6e\u70b9\u6570 + 0\uff09<br \/>^(-([1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*))|0?\\.0+|0$\u3000\/\/\u5339\u914d\u975e\u6b63\u6d6e\u70b9\u6570\uff08\u8d1f\u6d6e\u70b9\u6570 + 0\uff09<br \/>\u8bc4\u6ce8\uff1a\u5904\u7406\u5927\u91cf\u6570\u636e\u65f6\u6709\u7528\uff0c\u5177\u4f53\u5e94\u7528\u65f6\u6ce8\u610f\u4fee\u6b63<br \/>\u5339\u914d\u7279\u5b9a\u5b57\u7b26\u4e32\uff1a<br \/>^[A-Za-z]+$\u3000\/\/\u5339\u914d\u753126\u4e2a\u82f1\u6587\u5b57\u6bcd\u7ec4\u6210\u7684\u5b57\u7b26\u4e32<br \/>^[A-Z]+$\u3000\/\/\u5339\u914d\u753126\u4e2a\u82f1\u6587\u5b57\u6bcd\u7684\u5927\u5199\u7ec4\u6210\u7684\u5b57\u7b26\u4e32<br \/>^[a-z]+$\u3000\/\/\u5339\u914d\u753126\u4e2a\u82f1\u6587\u5b57\u6bcd\u7684\u5c0f\u5199\u7ec4\u6210\u7684\u5b57\u7b26\u4e32<br \/>^[A-Za-z0-9]+$\u3000\/\/\u5339\u914d\u7531\u6570\u5b57\u548c26\u4e2a\u82f1\u6587\u5b57\u6bcd\u7ec4\u6210\u7684\u5b57\u7b26\u4e32<br \/>^\\w+$\u3000\/\/\u5339\u914d\u7531\u6570\u5b57\u300126\u4e2a\u82f1\u6587\u5b57\u6bcd\u6216\u8005\u4e0b\u5212\u7ebf\u7ec4\u6210\u7684\u5b57\u7b26\u4e32<\/p>\n<p><a href=\"http:\/\/www.huzs.top\/wp-content\/uploads\/2013\/11\/php\u5e38\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u51fd\u6570.txt\">php\u5e38\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u51fd\u6570<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001PHP\u4e2d\u4e24\u4e2a\u5e38\u7528\u7684\u6b63\u5219\u51fd\u6570preg_match \u6b63\u5219\u51fd\u6570\uff0c\u4ee5perl\u8bed\u8a00\u4e3a\u57fa\u7840preg_match ( m [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1905","post","type-post","status-publish","format-standard","hentry","category-8"],"_links":{"self":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts\/1905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1905"}],"version-history":[{"count":3,"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts\/1905\/revisions"}],"predecessor-version":[{"id":1934,"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts\/1905\/revisions\/1934"}],"wp:attachment":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}