{"id":1120,"date":"2018-01-31T10:38:45","date_gmt":"2018-01-31T02:38:45","guid":{"rendered":"http:\/\/www.yusian.com\/blog\/?p=1120"},"modified":"2018-01-31T10:38:45","modified_gmt":"2018-01-31T02:38:45","slug":"%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f%e7%9a%84%e5%9f%ba%e6%9c%ac%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.yusian.com\/blog\/project\/2018\/01\/31\/1038451120.html","title":{"rendered":"\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u57fa\u672c\u4f7f\u7528"},"content":{"rendered":"<p><strong>1\u3001\u5143\u5b57\u7b26\uff1a&#8217;\\b&#8217;\uff0c\u4ee3\u8868\u5355\u8bcd\u7684\u5f00\u5173\u6216\u7ed3\u5c3e<\/strong><br \/>\n1.1\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0fhi\uff0c\u4f1a\u5339\u914d\u9664\u4e86hi\u672c\u8eab\u5916\uff0c\u6240\u6709\u5305\u542bhi\u7684\u5355\u8bcd\uff0c\u5982him,history&#8230;<br \/>\n1.2\u3001\\bhi\\b\u5219\u53ea\u80fd\u5339\u914d\u5355\u8bcdhi\uff1b<\/p>\n<p><strong>2\u3001\u5143\u5b57\u7b26\uff1a&#8217;.&#8217;\u548c&#8217;*&#8217;\uff0c<\/strong><br \/>\n2.1\u3001&#8217;.&#8217;\u5339\u914d\u9664\u6362\u884c\u7b26\u5916\u7684\u6240\u6709\u5b57\u7b26\uff0c&#8217;*&#8217;\u6307\u6267\u884c\u4efb\u610f\u6b21\u5339\u914d\uff1b<br \/>\n2.2\u3001\u5982\uff1a\\bhi\\b.*\\bLuck\\b \u4ee5\u5355\u8bcdhi\u5f00\u5934\u5e76\u4e14\u4ee5Luck\u5355\u8bcd\u7ed3\u5c3e\u540c\u4e00\u884c\u7684\u53e5\u5b50\uff1b<\/p>\n<p><strong>3\u3001\u5143\u5b57\u7b26\uff1a&#8217;\\d&#8217;\uff0c\u4ee3\u8868\u6570\u5b57<\/strong><br \/>\n3.1\u30010\\d\\d-\\d\\d\\d\\d\\d\\d\\d\\d\\d \u8868\u793a\u5339\u914d\u683c\u5f0f\u5982010-12345678\u8fd9\u6837\u7684\u6570\u5b57<br \/>\n3.2\u3001\u4e0a\u9762\u8fd8\u53ef\u4ee5\u5199\u62100\\d{2}-\\d{8}\uff0c'{}&#8217;\u8868\u8fbe\u91cd\u590d\u6b21\u6570\uff0c\u5e76\u4e14\u5fc5\u987b\u91cd\u590d\u8be5\u6b21\u6570\uff1b<\/p>\n<p><strong>4\u3001\u5143\u5b57\u7b26\uff1a&#8217;\\s&#8217;\u3001&#8217;\\w&#8217;<\/strong><br \/>\n4.1\u3001&#8217;\\s&#8217;\u5339\u914d\u4efb\u610f\u7684\u7a7a\u767d\u7b26\uff08\u5305\u62ec\u7a7a\u767d\u7b26\u3001\u5305\u62ec\u7a7a\u683c\u3001\u5236\u8868\u7b26\u3001\u6362\u884c\u7b26\u3001\u4e2d\u6587\u5168\u89d2\u7a7a\u683c\u7b49\uff09\uff1b<br \/>\n4.2\u3001&#8217;\\w&#8217;\u5339\u914d\u5b57\u6bcd\u6216\u6570\u5b57\u6216\u4e0b\u5212\u7ebf\u6216\u6c49\u5b57<br \/>\n4.3\u3001\\ba\\w*\\b\uff1a\u4ee5&#8217;a&#8217;\u5f00\u5934\u7684\u4efb\u610f\u5355\u8bcd\uff1b<br \/>\n4.4\u3001\\d+\uff1a\u5339\u914d\u4e00\u4f4d\u6216\u66f4\u591a\u4f4d\u6570\u5b57\uff1bPS\uff1a&#8217;*&#8217;\u4e0e&#8217;+&#8217;\u7684\u533a\u522b\u5728\u4e8e\u524d\u8005\u4e3a\u4efb\u610f\u6b21\uff0c\u540e\u8005\u81f3\u5c111\u6b21\uff1b<br \/>\n4.5\u3001\\b\\w{6}\\b\uff1a6\u4e2a\u5b57\u7b26\u7684\u5355\u8bcd<\/p>\n<p><strong>5\u3001\u5143\u5b57\u7b26\uff1a&#8217;^&#8217;\u548c&#8217;$&#8217;<\/strong><br \/>\n5.1\u3001&#8217;^&#8217;\u8868\u793a\u5339\u914d\u7684\u5f00\u59cb\uff0c&#8217;$&#8217;\u8868\u793a\u5339\u914d\u7684\u7ed3\u675f<br \/>\n5.2\u3001^\\d{5,12}$\uff1a\u5339\u914d5-12\u4f4d\u6570\u5b57\u7ec4\u5408\uff1b<!--more--><\/p>\n<p><strong>6\u3001\u5e38\u7528\u5143\u5b57\u7b26<\/strong><br \/>\n\u4ee3\u7801| \u8bf4\u660e<br \/>\n. | \u5339\u914d\u9664\u6362\u884c\u4ee5\u540e\u7684\u4efb\u610f\u5b57\u7b26<br \/>\n\\w | \u5b57\u6bcd\u3001\u6570\u5b57\u3001\u4e0b\u5212\u7ebf\u3001\u6c49\u5b57<br \/>\n\\d | \u6570\u5b57<br \/>\n\\s | \u4efb\u610f\u7a7a\u767d\u7b26(\u7a7a\u683c\u3001\u6362\u884c\u3001Tab)<br \/>\n\\b | \u5355\u8bcd\u7684\u5f00\u5934\u6216\u7ed3\u5c3e<br \/>\n^ | \u5b57\u7b26\u4e32\u7684\u5f00\u59cb<br \/>\n$ | \u5b57\u7b26\u4e32\u7684\u7ed3\u675f<\/p>\n<p><strong>7\u3001\u5e38\u7528\u7684\u9650\u5b9a\u7b26<\/strong><br \/>\n\u4ee3\u7801\/\u8bed\u6cd5 \u8bf4\u660e<br \/>\n* | \u91cd\u590d\u4efb\u610f\u6b21<br \/>\n+ | \u91cd\u590d\u4e00\u6b21\u53ca\u4ee5\u4e0a<br \/>\n\uff1f | \u91cd\u590d\u96f6\u6b21\u6216\u4e00\u6b21<br \/>\n{n} | \u91cd\u590dn\u6b21<br \/>\n{n,} | \u91cd\u590dn\u6b21\u53ca\u4ee5\u4e0a<br \/>\n{n,m} | \u91cd\u590dn\u5230m\u6b21<\/p>\n<p><strong>8\u3001\u5b57\u7b26\u7c7b<\/strong><br \/>\n8.1\u3001[0-9]\u4e0e\\d\u610f\u601d\u5b8c\u5168\u4e00\u81f4\uff1b<br \/>\n8.2\u3001[a-zA-Z0-9_]\u4e0e\\w\u5728\u4e0d\u8003\u8651\u4e2d\u6587\u7684\u60c5\u51b5\u4e0b\u610f\u601d\u4e00\u81f4\uff1b<br \/>\n8.3\u3001\\(?0\\d{2}[)-]?\\d{8}\uff1a\u5339\u914d010-88888888\u300101088888888\u3001(010)88888888\uff0c\u53ef\u62c6\u5206\u4e3a<br \/>\n&#8216;\\(?&#8217; + &#8216;0&#8217; + &#8216;\\d{2}&#8217; + [)-]? + \\d{8}<\/p>\n<p><strong>9\u3001\u6761\u4ef6\u5206\u652f<\/strong><br \/>\n9.1\u3001\u4e0a\u8ff0\u8868\u8fbe\u5f0f\u4e2d\uff0c\u7c7b\u4f3c(010-88888888\u6216010)88888888\u8fd9\u6837\u7684\u4e5f\u4f1a\u5339\u914d\u6210\u529f\uff0c\u8fd9\u662f\u4e0d\u5408\u7406\u7684\uff1b<br \/>\n9.2\u30010\\d{2}-\\d{8}|\\(0\\d{2}\\)\\d{8}\u4f7f\u7528\u6216\u5c06\u4e24\u79cd\u60c5\u51b5\u5206\u5f00\u5339\u914d\u4f7f\u5f97\u8981\u4e48\u4f7f\u7528&#8217;-&#8216;\u53ef\u4e48\u4f7f\u7528'()&#8217;\uff1b<\/p>\n<p><strong>10\u3001\u5206\u7ec4<\/strong><br \/>\n10.1\u3001\u7f51\u7edcip\u5730\u5740\u4e2d\u7684\u67d0\u4e00\u4f4d\uff1a2[0-4]\\d|25[0-5]|[1]?\\d\\d?<br \/>\n10.2\u3001\u5339\u914dip\u5730\u5740\u5219\u4f7f\u7528(2[0-4]\\d|25[0-5]|[1]?\\d\\d?\\.){3}(2[0-4]\\d|25[0-5]|[1]?\\d\\d?)<\/p>\n<p><strong>11\u3001\u53cd\u4e49<\/strong><br \/>\n\u4ee3\u7801\\\u8bed\u6cd5 \u8bf4\u660e<br \/>\n\\W \u975e(\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u4e0b\u5212\u7ebf\u3001\u6c49\u5b57)<br \/>\n\\S \u975e\u7a7a\u767d\u5b57\u7b26<br \/>\n\\D \u975e\u6570\u5b57\u5b57\u7b26<br \/>\n\\B \u975e\u5355\u8bcd\u5f00\u5934\u6216\u7ed3\u5c3e<br \/>\n[^x] \u9664x\u4ee5\u5916\u7684\u6240\u6709\u5b57\u7b26<br \/>\n[^aeiou] \u9664aeiou\u4ee5\u5916\u6240\u6709\u5b57\u7b26<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u5143\u5b57\u7b26\uff1a&#8217;\\b&#8217;\uff0c\u4ee3\u8868\u5355\u8bcd\u7684\u5f00\u5173\u6216\u7ed3\u5c3e 1.1\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0fhi\uff0c\u4f1a\u5339\u914d\u9664\u4e86hi\u672c\u8eab\u5916\uff0c\u6240\u6709\u5305\u542bhi\u7684\u5355\u8bcd\uff0c\u5982him,history&#8230; 1.2\u3001\\bhi\\b\u5219\u53ea\u80fd\u5339\u914d\u5355\u8bcdhi\uff1b 2\u3001\u5143\u5b57\u7b26\uff1a&#8217;.&#8217;\u548c&#8217;*&#8217;\uff0c 2.1\u3001&#8217;.&#8217;\u5339\u914d\u9664\u6362\u884c\u7b26\u5916\u7684\u6240\u6709\u5b57\u7b26\uff0c&#8217;*&#8217;\u6307\u6267\u884c\u4efb\u610f\u6b21\u5339\u914d\uff1b 2.2\u3001\u5982\uff1a\\bhi\\b.*\\bLuck\\b \u4ee5\u5355\u8bcdhi\u5f00\u5934\u5e76\u4e14\u4ee5Luck\u5355\u8bcd\u7ed3\u5c3e\u540c\u4e00\u884c\u7684\u53e5\u5b50\uff1b 3\u3001\u5143\u5b57\u7b26\uff1a&#8217;\\d&#8217;\uff0c\u4ee3\u8868\u6570\u5b57 3.1\u30010\\d\\d-\\d\\d\\d\\d\\d\\d\\d\\d\\d \u8868\u793a\u5339\u914d\u683c\u5f0f\u5982010-12345678\u8fd9\u6837\u7684\u6570\u5b57 3.2\u3001\u4e0a\u9762\u8fd8\u53ef\u4ee5\u5199\u62100\\d{2}-\\d{8}\uff0c'{}&#8217;\u8868\u8fbe\u91cd\u590d\u6b21\u6570\uff0c\u5e76\u4e14\u5fc5\u987b\u91cd\u590d\u8be5\u6b21\u6570\uff1b 4\u3001\u5143\u5b57\u7b26\uff1a&#8217;\\s&#8217;\u3001&#8217;\\w&#8217; 4.1\u3001&#8217;\\s&#8217;\u5339\u914d\u4efb\u610f\u7684\u7a7a\u767d\u7b26\uff08\u5305\u62ec\u7a7a\u767d\u7b26\u3001\u5305\u62ec\u7a7a\u683c\u3001\u5236\u8868\u7b26\u3001\u6362\u884c\u7b26\u3001\u4e2d\u6587\u5168\u89d2\u7a7a\u683c\u7b49\uff09\uff1b 4.2\u3001&#8217;\\w&#8217;\u5339\u914d\u5b57\u6bcd\u6216\u6570\u5b57\u6216\u4e0b\u5212\u7ebf\u6216\u6c49\u5b57 4.3\u3001\\ba\\w*\\b\uff1a\u4ee5&#8217;a&#8217;\u5f00\u5934\u7684\u4efb\u610f\u5355\u8bcd\uff1b 4.4\u3001\\d+\uff1a\u5339\u914d\u4e00\u4f4d\u6216\u66f4\u591a\u4f4d\u6570\u5b57\uff1bPS\uff1a&#8217;*&#8217;\u4e0e&#8217;+&#8217;\u7684\u533a\u522b\u5728\u4e8e\u524d\u8005\u4e3a\u4efb\u610f\u6b21\uff0c\u540e\u8005\u81f3\u5c111\u6b21\uff1b 4.5\u3001\\b\\w{6}\\b\uff1a6\u4e2a\u5b57\u7b26\u7684\u5355\u8bcd 5\u3001\u5143\u5b57\u7b26\uff1a&#8217;^&#8217;\u548c&#8217;$&#8217; 5.1\u3001&#8217;^&#8217;\u8868\u793a\u5339\u914d\u7684\u5f00\u59cb\uff0c&#8217;$&#8217;\u8868\u793a\u5339\u914d\u7684\u7ed3\u675f 5.2\u3001^\\d{5,12}$\uff1a\u5339\u914d5-12\u4f4d\u6570\u5b57\u7ec4\u5408\uff1b<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,24,35,28,11],"tags":[53,56],"class_list":["post-1120","post","type-post","status-publish","format-standard","hentry","category-android","category-h5","category-java","category-javascript","category-project","tag-javascript","tag-56"],"_links":{"self":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/1120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/comments?post=1120"}],"version-history":[{"count":0,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/1120\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/media?parent=1120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/categories?post=1120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/tags?post=1120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}