{"id":192,"date":"2018-12-20T12:50:21","date_gmt":"2018-12-20T04:50:21","guid":{"rendered":"https:\/\/qtvz.com\/?p=192"},"modified":"2018-12-20T13:00:15","modified_gmt":"2018-12-20T05:00:15","slug":"android%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f%e5%b7%a5%e5%85%b7%e7%b1%bb","status":"publish","type":"post","link":"https:\/\/qtvz.com\/192.html","title":{"rendered":"Android\u6b63\u5219\u8868\u8fbe\u5f0f\u5de5\u5177\u7c7b"},"content":{"rendered":"<!--wp-compress-html--><!--wp-compress-html no compression--><h2 id=\"java-\u6b63\u5219\u8868\u8fbe\u5f0f\u5e38\u7528\u7684\u5b57\u7b26\u8bf4\u660e\">java <a href=\"https:\/\/qtvz.com\/tag\/%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f\" class=\"tag-tooltip\" data-toggle=\"tooltip\" title=\"\u67e5\u770b\u66f4\u591a\u5173\u4e8e \u6b63\u5219\u8868\u8fbe\u5f0f \u7684\u6587\u7ae0\" target=\"_blank\">\u6b63\u5219\u8868\u8fbe\u5f0f<\/a>\u5e38\u7528\u7684\u5b57\u7b26\u8bf4\u660e<\/h2>\n<table style=\"height: 3257px;\" width=\"772\">\n<tbody>\n<tr>\n<td width=\"66\"><strong>\u5b57\u7b26<\/strong><\/td>\n<td width=\"487\"><strong>\u8bf4\u660e<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\<\/td>\n<td width=\"487\">\u5c06\u4e0b\u4e00\u5b57\u7b26\u6807\u8bb0\u4e3a\u7279\u6b8a\u5b57\u7b26\u3001\u6587\u672c\u3001\u53cd\u5411\u5f15\u7528\u6216\u516b\u8fdb\u5236\u8f6c\u4e49\u7b26\u3002\u4f8b\u5982\uff0c\u201dn\u201d\u5339\u914d\u5b57\u7b26\u201dn\u201d\u3002\u201d\\n\u201d\u5339\u914d\u6362\u884c\u7b26\u3002\u5e8f\u5217\u201d\\\\\u201d\u5339\u914d\u201d\\\u201d\uff0c\u201d\\(\u201c\u5339\u914d\u201d(\u201c\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">^<\/td>\n<td width=\"487\">\u5339\u914d\u8f93\u5165\u5b57\u7b26\u4e32\u5f00\u59cb\u7684\u4f4d\u7f6e\u3002\u5982\u679c\u8bbe\u7f6e\u4e86 RegExp \u5bf9\u8c61\u7684 Multiline \u5c5e\u6027\uff0c^ \u8fd8\u4f1a\u4e0e\u201d\\n\u201d\u6216\u201d\\r\u201d\u4e4b\u540e\u7684\u4f4d\u7f6e\u5339\u914d\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">$<\/td>\n<td width=\"487\">\u5339\u914d\u8f93\u5165\u5b57\u7b26\u4e32\u7ed3\u5c3e\u7684\u4f4d\u7f6e\u3002\u5982\u679c\u8bbe\u7f6e\u4e86 RegExp \u5bf9\u8c61\u7684 Multiline \u5c5e\u6027\uff0c$ \u8fd8\u4f1a\u4e0e\u201d\\n\u201d\u6216\u201d\\r\u201d\u4e4b\u524d\u7684\u4f4d\u7f6e\u5339\u914d\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">*<\/td>\n<td width=\"487\">\u96f6\u6b21\u6216\u591a\u6b21\u5339\u914d\u524d\u9762\u7684\u5b57\u7b26\u6216\u5b50\u8868\u8fbe\u5f0f\u3002\u4f8b\u5982\uff0czo* \u5339\u914d\u201dz\u201d\u548c\u201dzoo\u201d\u3002* \u7b49\u6548\u4e8e {0,}\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">+<\/td>\n<td width=\"487\">\u4e00\u6b21\u6216\u591a\u6b21\u5339\u914d\u524d\u9762\u7684\u5b57\u7b26\u6216\u5b50\u8868\u8fbe\u5f0f\u3002\u4f8b\u5982\uff0c\u201dzo+\u201d\u4e0e\u201dzo\u201d\u548c\u201dzoo\u201d\u5339\u914d\uff0c\u4f46\u4e0e\u201dz\u201d\u4e0d\u5339\u914d\u3002+ \u7b49\u6548\u4e8e {1,}\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">?<\/td>\n<td width=\"487\">\u96f6\u6b21\u6216\u4e00\u6b21\u5339\u914d\u524d\u9762\u7684\u5b57\u7b26\u6216\u5b50\u8868\u8fbe\u5f0f\u3002\u4f8b\u5982\uff0c\u201ddo(es)?\u201d\u5339\u914d\u201ddo\u201d\u6216\u201ddoes\u201d\u4e2d\u7684\u201ddo\u201d\u3002? \u7b49\u6548\u4e8e {0,1}\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">{n}<\/td>\n<td width=\"487\">n \u662f\u975e\u8d1f\u6574\u6570\u3002\u6b63\u597d\u5339\u914d n \u6b21\u3002\u4f8b\u5982\uff0c\u201do{2}\u201d\u4e0e\u201dBob\u201d\u4e2d\u7684\u201do\u201d\u4e0d\u5339\u914d\uff0c\u4f46\u4e0e\u201dfood\u201d\u4e2d\u7684\u4e24\u4e2a\u201do\u201d\u5339\u914d\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">{n,}<\/td>\n<td width=\"487\">n \u662f\u975e\u8d1f\u6574\u6570\u3002\u81f3\u5c11\u5339\u914d n \u6b21\u3002\u4f8b\u5982\uff0c\u201do{2,}\u201d\u4e0d\u5339\u914d\u201dBob\u201d\u4e2d\u7684\u201do\u201d\uff0c\u800c\u5339\u914d\u201dfoooood\u201d\u4e2d\u7684\u6240\u6709 o\u3002\u201do{1,}\u201d\u7b49\u6548\u4e8e\u201do+\u201d\u3002\u201do{0,}\u201d\u7b49\u6548\u4e8e\u201do*\u201d\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">{n,m}<\/td>\n<td width=\"487\">M \u548c n \u662f\u975e\u8d1f\u6574\u6570\uff0c\u5176\u4e2d n &lt;= m\u3002\u5339\u914d\u81f3\u5c11 n \u6b21\uff0c\u81f3\u591a m \u6b21\u3002\u4f8b\u5982\uff0c\u201do{1,3}\u201d\u5339\u914d\u201dfooooood\u201d\u4e2d\u7684\u5934\u4e09\u4e2a o\u3002\u2019o{0,1}\u2019 \u7b49\u6548\u4e8e \u2018o?\u2019\u3002\u6ce8\u610f\uff1a\u60a8\u4e0d\u80fd\u5c06\u7a7a\u683c\u63d2\u5165\u9017\u53f7\u548c\u6570\u5b57\u4e4b\u95f4\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">?<\/td>\n<td width=\"487\">\u5f53\u6b64\u5b57\u7b26\u7d27\u968f\u4efb\u4f55\u5176\u4ed6\u9650\u5b9a\u7b26\uff08*\u3001+\u3001?\u3001{n}\u3001{n,}\u3001{n,m}\uff09\u4e4b\u540e\u65f6\uff0c\u5339\u914d\u6a21\u5f0f\u662f\u201d\u975e\u8d2a\u5fc3\u7684\u201d\u3002\u201d\u975e\u8d2a\u5fc3\u7684\u201d\u6a21\u5f0f\u5339\u914d\u641c\u7d22\u5230\u7684\u3001\u5c3d\u53ef\u80fd\u77ed\u7684\u5b57\u7b26\u4e32\uff0c\u800c\u9ed8\u8ba4\u7684\u201d\u8d2a\u5fc3\u7684\u201d\u6a21\u5f0f\u5339\u914d\u641c\u7d22\u5230\u7684\u3001\u5c3d\u53ef\u80fd\u957f\u7684\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c\u5728\u5b57\u7b26\u4e32\u201doooo\u201d\u4e2d\uff0c\u201do+?\u201d\u53ea\u5339\u914d\u5355\u4e2a\u201do\u201d\uff0c\u800c\u201do+\u201d\u5339\u914d\u6240\u6709\u201do\u201d\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">.<\/td>\n<td width=\"487\">\u5339\u914d\u9664\u201d\\r\\n\u201d\u4e4b\u5916\u7684\u4efb\u4f55\u5355\u4e2a\u5b57\u7b26\u3002\u82e5\u8981\u5339\u914d\u5305\u62ec\u201d\\r\\n\u201d\u5728\u5185\u7684\u4efb\u610f\u5b57\u7b26\uff0c\u8bf7\u4f7f\u7528\u8bf8\u5982\u201d[\\s\\S]\u201d\u4e4b\u7c7b\u7684\u6a21\u5f0f\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">(pattern)<\/td>\n<td width=\"487\">\u5339\u914d pattern \u5e76\u6355\u83b7\u8be5\u5339\u914d\u7684\u5b50\u8868\u8fbe\u5f0f\u3002\u53ef\u4ee5\u4f7f\u7528 [Math Processing Error]0\u20269 \u5c5e\u6027\u4ece\u7ed3\u679c\u201d\u5339\u914d\u201d\u96c6\u5408\u4e2d\u68c0\u7d22\u6355\u83b7\u7684\u5339\u914d\u3002\u82e5\u8981\u5339\u914d\u62ec\u53f7\u5b57\u7b26 ( )\uff0c\u8bf7\u4f7f\u7528\u201d(\u201c\u6216\u8005\u201d)\u201d\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">(?:pattern)<\/td>\n<td width=\"487\">\u5339\u914d pattern \u4f46\u4e0d\u6355\u83b7\u8be5\u5339\u914d\u7684\u5b50\u8868\u8fbe\u5f0f\uff0c\u5373\u5b83\u662f\u4e00\u4e2a\u975e\u6355\u83b7\u5339\u914d\uff0c\u4e0d\u5b58\u50a8\u4f9b\u4ee5\u540e\u4f7f\u7528\u7684\u5339\u914d\u3002\u8fd9\u5bf9\u4e8e\u7528\u201dor\u201d\u5b57\u7b26 (<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">(?=pattern)<\/td>\n<td width=\"487\">\u6267\u884c\u6b63\u5411\u9884\u6d4b\u5148\u884c\u641c\u7d22\u7684\u5b50\u8868\u8fbe\u5f0f\uff0c\u8be5\u8868\u8fbe\u5f0f\u5339\u914d\u5904\u4e8e\u5339\u914d pattern \u7684\u5b57\u7b26\u4e32\u7684\u8d77\u59cb\u70b9\u7684\u5b57\u7b26\u4e32\u3002\u5b83\u662f\u4e00\u4e2a\u975e\u6355\u83b7\u5339\u914d\uff0c\u5373\u4e0d\u80fd\u6355\u83b7\u4f9b\u4ee5\u540e\u4f7f\u7528\u7684\u5339\u914d\u3002\u4f8b\u5982\uff0c\u2019Windows (?=95<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">(?!pattern)<\/td>\n<td width=\"487\">\u6267\u884c\u53cd\u5411\u9884\u6d4b\u5148\u884c\u641c\u7d22\u7684\u5b50\u8868\u8fbe\u5f0f\uff0c\u8be5\u8868\u8fbe\u5f0f\u5339\u914d\u4e0d\u5904\u4e8e\u5339\u914d pattern \u7684\u5b57\u7b26\u4e32\u7684\u8d77\u59cb\u70b9\u7684\u641c\u7d22\u5b57\u7b26\u4e32\u3002\u5b83\u662f\u4e00\u4e2a\u975e\u6355\u83b7\u5339\u914d\uff0c\u5373\u4e0d\u80fd\u6355\u83b7\u4f9b\u4ee5\u540e\u4f7f\u7528\u7684\u5339\u914d\u3002\u4f8b\u5982\uff0c\u2019Windows (?!95<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">x<\/td>\n<td width=\"487\">y<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">[xyz]<\/td>\n<td width=\"487\">\u5b57\u7b26\u96c6\u3002\u5339\u914d\u5305\u542b\u7684\u4efb\u4e00\u5b57\u7b26\u3002\u4f8b\u5982\uff0c\u201d[abc]\u201d\u5339\u914d\u201dplain\u201d\u4e2d\u7684\u201da\u201d\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">[^xyz]<\/td>\n<td width=\"487\">\u53cd\u5411\u5b57\u7b26\u96c6\u3002\u5339\u914d\u672a\u5305\u542b\u7684\u4efb\u4f55\u5b57\u7b26\u3002\u4f8b\u5982\uff0c\u201d[^abc]\u201d\u5339\u914d\u201dplain\u201d\u4e2d\u201dp\u201d\uff0c\u201dl\u201d\uff0c\u201di\u201d\uff0c\u201dn\u201d\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">[a-z]<\/td>\n<td width=\"487\">\u5b57\u7b26\u8303\u56f4\u3002\u5339\u914d\u6307\u5b9a\u8303\u56f4\u5185\u7684\u4efb\u4f55\u5b57\u7b26\u3002\u4f8b\u5982\uff0c\u201d[a-z]\u201d\u5339\u914d\u201da\u201d\u5230\u201dz\u201d\u8303\u56f4\u5185\u7684\u4efb\u4f55\u5c0f\u5199\u5b57\u6bcd\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">[^a-z]<\/td>\n<td width=\"487\">\u53cd\u5411\u8303\u56f4\u5b57\u7b26\u3002\u5339\u914d\u4e0d\u5728\u6307\u5b9a\u7684\u8303\u56f4\u5185\u7684\u4efb\u4f55\u5b57\u7b26\u3002\u4f8b\u5982\uff0c\u201d[^a-z]\u201d\u5339\u914d\u4efb\u4f55\u4e0d\u5728\u201da\u201d\u5230\u201dz\u201d\u8303\u56f4\u5185\u7684\u4efb\u4f55\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\b<\/td>\n<td width=\"487\">\u5339\u914d\u4e00\u4e2a\u5b57\u8fb9\u754c\uff0c\u5373\u5b57\u4e0e\u7a7a\u683c\u95f4\u7684\u4f4d\u7f6e\u3002\u4f8b\u5982\uff0c\u201der\\b\u201d\u5339\u914d\u201dnever\u201d\u4e2d\u7684\u201der\u201d\uff0c\u4f46\u4e0d\u5339\u914d\u201dverb\u201d\u4e2d\u7684\u201der\u201d\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\B<\/td>\n<td width=\"487\">\u975e\u5b57\u8fb9\u754c\u5339\u914d\u3002\u201der\\B\u201d\u5339\u914d\u201dverb\u201d\u4e2d\u7684\u201der\u201d\uff0c\u4f46\u4e0d\u5339\u914d\u201dnever\u201d\u4e2d\u7684\u201der\u201d\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\cx<\/td>\n<td width=\"487\">\u5339\u914d x \u6307\u793a\u7684\u63a7\u5236\u5b57\u7b26\u3002\u4f8b\u5982\uff0c\\cM \u5339\u914d Control-M \u6216\u56de\u8f66\u7b26\u3002x \u7684\u503c\u5fc5\u987b\u5728 A-Z \u6216 a-z \u4e4b\u95f4\u3002\u5982\u679c\u4e0d\u662f\u8fd9\u6837\uff0c\u5219\u5047\u5b9a c \u5c31\u662f\u201dc\u201d\u5b57\u7b26\u672c\u8eab\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\d<\/td>\n<td width=\"487\">\u6570\u5b57\u5b57\u7b26\u5339\u914d\u3002\u7b49\u6548\u4e8e [0-9]\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\D<\/td>\n<td width=\"487\">\u975e\u6570\u5b57\u5b57\u7b26\u5339\u914d\u3002\u7b49\u6548\u4e8e [^0-9]\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\f<\/td>\n<td width=\"487\">\u6362\u9875\u7b26\u5339\u914d\u3002\u7b49\u6548\u4e8e \\x0c \u548c \\cL\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\n<\/td>\n<td width=\"487\">\u6362\u884c\u7b26\u5339\u914d\u3002\u7b49\u6548\u4e8e \\x0a \u548c \\cJ\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\r<\/td>\n<td width=\"487\">\u5339\u914d\u4e00\u4e2a\u56de\u8f66\u7b26\u3002\u7b49\u6548\u4e8e \\x0d \u548c \\cM\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\s<\/td>\n<td width=\"487\">\u5339\u914d\u4efb\u4f55\u7a7a\u767d\u5b57\u7b26\uff0c\u5305\u62ec\u7a7a\u683c\u3001\u5236\u8868\u7b26\u3001\u6362\u9875\u7b26\u7b49\u3002\u4e0e [ \\f\\n\\r\\t\\v] \u7b49\u6548\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\S<\/td>\n<td width=\"487\">\u5339\u914d\u4efb\u4f55\u975e\u7a7a\u767d\u5b57\u7b26\u3002\u4e0e [^ \\f\\n\\r\\t\\v] \u7b49\u6548\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\t<\/td>\n<td width=\"487\">\u5236\u8868\u7b26\u5339\u914d\u3002\u4e0e \\x09 \u548c \\cI \u7b49\u6548\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\v<\/td>\n<td width=\"487\">\u5782\u76f4\u5236\u8868\u7b26\u5339\u914d\u3002\u4e0e \\x0b \u548c \\cK \u7b49\u6548\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\w<\/td>\n<td width=\"487\">\u5339\u914d\u4efb\u4f55\u5b57\u7c7b\u5b57\u7b26\uff0c\u5305\u62ec\u4e0b\u5212\u7ebf\u3002\u4e0e\u201d[A-Za-z0-9_]\u201d\u7b49\u6548\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\W<\/td>\n<td width=\"487\">\u4e0e\u4efb\u4f55\u975e\u5355\u8bcd\u5b57\u7b26\u5339\u914d\u3002\u4e0e\u201d[^A-Za-z0-9_]\u201d\u7b49\u6548\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\xn<\/td>\n<td width=\"487\">\u5339\u914d n\uff0c\u6b64\u5904\u7684 n \u662f\u4e00\u4e2a\u5341\u516d\u8fdb\u5236\u8f6c\u4e49\u7801\u3002\u5341\u516d\u8fdb\u5236\u8f6c\u4e49\u7801\u5fc5\u987b\u6b63\u597d\u662f\u4e24\u4f4d\u6570\u957f\u3002\u4f8b\u5982\uff0c\u201d\\x41\u201d\u5339\u914d\u201dA\u201d\u3002\u201d\\x041\u201d\u4e0e\u201d\\x04\u201d&amp;\u201d1\u201d\u7b49\u6548\u3002\u5141\u8bb8\u5728<a href=\"https:\/\/qtvz.com\/tag\/%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f\" class=\"tag-tooltip\" data-toggle=\"tooltip\" title=\"\u67e5\u770b\u66f4\u591a\u5173\u4e8e \u6b63\u5219\u8868\u8fbe\u5f0f \u7684\u6587\u7ae0\" target=\"_blank\">\u6b63\u5219\u8868\u8fbe\u5f0f<\/a>\u4e2d\u4f7f\u7528 ASCII \u4ee3\u7801\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\num<\/td>\n<td width=\"487\">\u5339\u914d num\uff0c\u6b64\u5904\u7684 num \u662f\u4e00\u4e2a\u6b63\u6574\u6570\u3002\u5230\u6355\u83b7\u5339\u914d\u7684\u53cd\u5411\u5f15\u7528\u3002\u4f8b\u5982\uff0c\u201d(.)\\1\u201d\u5339\u914d\u4e24\u4e2a\u8fde\u7eed\u7684\u76f8\u540c\u5b57\u7b26\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\n<\/td>\n<td width=\"487\">\u6807\u8bc6\u4e00\u4e2a\u516b\u8fdb\u5236\u8f6c\u4e49\u7801\u6216\u53cd\u5411\u5f15\u7528\u3002\u5982\u679c \\n \u524d\u9762\u81f3\u5c11\u6709 n \u4e2a\u6355\u83b7\u5b50\u8868\u8fbe\u5f0f\uff0c\u90a3\u4e48 n \u662f\u53cd\u5411\u5f15\u7528\u3002\u5426\u5219\uff0c\u5982\u679c n \u662f\u516b\u8fdb\u5236\u6570 (0-7)\uff0c\u90a3\u4e48 n \u662f\u516b\u8fdb\u5236\u8f6c\u4e49\u7801\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\nm<\/td>\n<td width=\"487\">\u6807\u8bc6\u4e00\u4e2a\u516b\u8fdb\u5236\u8f6c\u4e49\u7801\u6216\u53cd\u5411\u5f15\u7528\u3002\u5982\u679c \\nm \u524d\u9762\u81f3\u5c11\u6709 nm \u4e2a\u6355\u83b7\u5b50\u8868\u8fbe\u5f0f\uff0c\u90a3\u4e48 nm \u662f\u53cd\u5411\u5f15\u7528\u3002\u5982\u679c \\nm \u524d\u9762\u81f3\u5c11\u6709 n \u4e2a\u6355\u83b7\uff0c\u5219 n \u662f\u53cd\u5411\u5f15\u7528\uff0c\u540e\u9762\u8ddf\u6709\u5b57\u7b26 m\u3002\u5982\u679c\u4e24\u79cd\u524d\u9762\u7684\u60c5\u51b5\u90fd\u4e0d\u5b58\u5728\uff0c\u5219 \\nm \u5339\u914d\u516b\u8fdb\u5236\u503c nm\uff0c\u5176\u4e2d n \u548c m \u662f\u516b\u8fdb\u5236\u6570\u5b57 (0-7)\u3002<\/td>\n<\/tr>\n<tr>\n<td width=\"66\">\\nml<\/td>\n<td width=\"487\">\u5f53 n \u662f\u516b\u8fdb\u5236\u6570 (0-3)\uff0cm \u548c l \u662f\u516b\u8fdb\u5236\u6570 (0-7) \u65f6\uff0c\u5339\u914d\u516b\u8fdb\u5236\u8f6c\u4e49\u7801 nml\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u4ee5\u4e0a\u5185\u5bb9\u6765\u81ea\u00a0<a href=\"https:\/\/qtvz.com\/redirect\/aHR0cDovL3d3dy5ydW5vb2IuY29tL2phdmEvamF2YS1yZWd1bGFyLWV4cHJlc3Npb25zLmh0bWw=\" target=\"_blank\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Java \u6b63\u5219\u8868\u8fbe\u5f0f<\/a>\uff0c\u8be5\u6587\u7ae0\u91cc\u9762\u5199\u5f97\u5f88\u7ec6\u3002<\/h3>\n<h2 id=\"\u5e38\u7528\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\">\u5e38\u7528\u7684\u6b63\u5219\u8868\u8fbe\u5f0f<\/h2>\n<h3 id=\"\u4e00\u6821\u9a8c\u6570\u5b57\u7684\u8868\u8fbe\u5f0f\">\u4e00\u3001\u6821\u9a8c\u6570\u5b57\u7684\u8868\u8fbe\u5f0f<\/h3>\n<p>\u4ee5\u4e0b\u5185\u5bb9\u6765\u6e90\u4e8e\u535a\u5ba2\u00a0<a href=\"https:\/\/qtvz.com\/redirect\/aHR0cDovL3d3dy5jbmJsb2dzLmNvbS96eGluL2FyY2hpdmUvMjAxMy8wMS8yNi8yODc3NzY1Lmh0bWw=\" target=\"_blank\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\u6700\u5168\u7684\u5e38\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5927\u5168\u2014\u2014\u5305\u62ec\u6821\u9a8c\u6570\u5b57\u3001\u5b57\u7b26\u3001\u4e00\u4e9b\u7279\u6b8a\u7684\u9700\u6c42\u7b49\u7b49<\/a><\/p>\n<pre class=\"lang:default decode:true\"> 1 \u6570\u5b57\uff1a^[0-9]*$\r\n 2 n\u4f4d\u7684\u6570\u5b57\uff1a^\\d{n}$\r\n 3 \u81f3\u5c11n\u4f4d\u7684\u6570\u5b57\uff1a^\\d{n,}$\r\n 4 m-n\u4f4d\u7684\u6570\u5b57\uff1a^\\d{m,n}$\r\n 5 \u96f6\u548c\u975e\u96f6\u5f00\u5934\u7684\u6570\u5b57\uff1a^(0|[1-9][0-9]*)$\r\n 6 \u975e\u96f6\u5f00\u5934\u7684\u6700\u591a\u5e26\u4e24\u4f4d\u5c0f\u6570\u7684\u6570\u5b57\uff1a^([1-9][0-9]*)+(.[0-9]{1,2})?$\r\n 7 \u5e261-2\u4f4d\u5c0f\u6570\u7684\u6b63\u6570\u6216\u8d1f\u6570\uff1a^(\\-)?\\d+(\\.\\d{1,2})?$\r\n 8 \u6b63\u6570\u3001\u8d1f\u6570\u3001\u548c\u5c0f\u6570\uff1a^(\\-|\\+)?\\d+(\\.\\d+)?$\r\n 9 \u6709\u4e24\u4f4d\u5c0f\u6570\u7684\u6b63\u5b9e\u6570\uff1a^[0-9]+(.[0-9]{2})?$\r\n10 \u67091~3\u4f4d\u5c0f\u6570\u7684\u6b63\u5b9e\u6570\uff1a^[0-9]+(.[0-9]{1,3})?$\r\n11 \u975e\u96f6\u7684\u6b63\u6574\u6570\uff1a^[1-9]\\d*$ \u6216 ^([1-9][0-9]*){1,3}$ \u6216 ^\\+?[1-9][0-9]*$\r\n12 \u975e\u96f6\u7684\u8d1f\u6574\u6570\uff1a^\\-[1-9][]0-9\"*$ \u6216 ^-[1-9]\\d*$\r\n13 \u975e\u8d1f\u6574\u6570\uff1a^\\d+$ \u6216 ^[1-9]\\d*|0$\r\n14 \u975e\u6b63\u6574\u6570\uff1a^-[1-9]\\d*|0$ \u6216 ^((-\\d+)|(0+))$\r\n15 \u975e\u8d1f\u6d6e\u70b9\u6570\uff1a^\\d+(\\.\\d+)?$ \u6216 ^[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*|0?\\.0+|0$\r\n16 \u975e\u6b63\u6d6e\u70b9\u6570\uff1a^((-\\d+(\\.\\d+)?)|(0+(\\.0+)?))$ \u6216 ^(-([1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*))|0?\\.0+|0$\r\n17 \u6b63\u6d6e\u70b9\u6570\uff1a^[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*$ \u6216 ^(([0-9]+\\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\\.[0-9]+)|([0-9]*[1-9][0-9]*))$\r\n18 \u8d1f\u6d6e\u70b9\u6570\uff1a^-([1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*)$ \u6216 ^(-(([0-9]+\\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\\.[0-9]+)|([0-9]*[1-9][0-9]*)))$\r\n19 \u6d6e\u70b9\u6570\uff1a^(-?\\d+)(\\.\\d+)?$ \u6216 ^-?([1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*|0?\\.0+|0)$<\/pre>\n<h3 id=\"\u4e8c\u6821\u9a8c\u5b57\u7b26\u7684\u8868\u8fbe\u5f0f\">\u4e8c\u3001\u6821\u9a8c\u5b57\u7b26\u7684\u8868\u8fbe\u5f0f<\/h3>\n<pre class=\"lang:default decode:true \"> 1 \u6c49\u5b57\uff1a^[\\u4e00-\\u9fa5]{0,}$\r\n 2 \u82f1\u6587\u548c\u6570\u5b57\uff1a^[A-Za-z0-9]+$ \u6216 ^[A-Za-z0-9]{4,40}$\r\n 3 \u957f\u5ea6\u4e3a3-20\u7684\u6240\u6709\u5b57\u7b26\uff1a^.{3,20}$\r\n 4 \u753126\u4e2a\u82f1\u6587\u5b57\u6bcd\u7ec4\u6210\u7684\u5b57\u7b26\u4e32\uff1a^[A-Za-z]+$\r\n 5 \u753126\u4e2a\u5927\u5199\u82f1\u6587\u5b57\u6bcd\u7ec4\u6210\u7684\u5b57\u7b26\u4e32\uff1a^[A-Z]+$\r\n 6 \u753126\u4e2a\u5c0f\u5199\u82f1\u6587\u5b57\u6bcd\u7ec4\u6210\u7684\u5b57\u7b26\u4e32\uff1a^[a-z]+$\r\n 7 \u7531\u6570\u5b57\u548c26\u4e2a\u82f1\u6587\u5b57\u6bcd\u7ec4\u6210\u7684\u5b57\u7b26\u4e32\uff1a^[A-Za-z0-9]+$\r\n 8 \u7531\u6570\u5b57\u300126\u4e2a\u82f1\u6587\u5b57\u6bcd\u6216\u8005\u4e0b\u5212\u7ebf\u7ec4\u6210\u7684\u5b57\u7b26\u4e32\uff1a^\\w+$ \u6216 ^\\w{3,20}$\r\n 9 \u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u5305\u62ec\u4e0b\u5212\u7ebf\uff1a^[\\u4E00-\\u9FA5A-Za-z0-9_]+$\r\n10 \u4e2d\u6587\u3001\u82f1\u6587\u3001\u6570\u5b57\u4f46\u4e0d\u5305\u62ec\u4e0b\u5212\u7ebf\u7b49\u7b26\u53f7\uff1a^[\\u4E00-\\u9FA5A-Za-z0-9]+$ \u6216 ^[\\u4E00-\\u9FA5A-Za-z0-9]{2,20}$\r\n11 \u53ef\u4ee5\u8f93\u5165\u542b\u6709^%&amp;',;=?$\\\"\u7b49\u5b57\u7b26\uff1a[^%&amp;',;=?$\\x22]+\r\n12 \u7981\u6b62\u8f93\u5165\u542b\u6709~\u7684\u5b57\u7b26\uff1a[^~\\x22]+\r\n<\/pre>\n<h3 id=\"\u4e09\u7279\u6b8a\u9700\u6c42\u8868\u8fbe\u5f0f\">\u4e09\u3001\u7279\u6b8a\u9700\u6c42\u8868\u8fbe\u5f0f<\/h3>\n<pre class=\"lang:default decode:true \"> 1 Email\u5730\u5740\uff1a^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$\r\n 2 \u57df\u540d\uff1a[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\/.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\/.?\r\n 3 InternetURL\uff1a[a-zA-z]+:\/\/[^\\s]* \u6216 ^http:\/\/([\\w-]+\\.)+[\\w-]+(\/[\\w-.\/?%&amp;=]*)?$\r\n 4 \u624b\u673a\u53f7\u7801\uff1a^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\\d{8}$\r\n 5 \u7535\u8bdd\u53f7\u7801(\"XXX-XXXXXXX\"\u3001\"XXXX-XXXXXXXX\"\u3001\"XXX-XXXXXXX\"\u3001\"XXX-XXXXXXXX\"\u3001\"XXXXXXX\"\u548c\"XXXXXXXX)\uff1a^(\\(\\d{3,4}-)|\\d{3.4}-)?\\d{7,8}$ \r\n 6 \u56fd\u5185\u7535\u8bdd\u53f7\u7801(0511-4405222\u3001021-87888822)\uff1a\\d{3}-\\d{8}|\\d{4}-\\d{7}\r\n 7 \u8eab\u4efd\u8bc1\u53f7(15\u4f4d\u300118\u4f4d\u6570\u5b57)\uff1a^\\d{15}|\\d{18}$\r\n 8 \u77ed\u8eab\u4efd\u8bc1\u53f7\u7801(\u6570\u5b57\u3001\u5b57\u6bcdx\u7ed3\u5c3e)\uff1a^([0-9]){7,18}(x|X)?$ \u6216 ^\\d{8,18}|[0-9x]{8,18}|[0-9X]{8,18}?$\r\n 9 \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}$\r\n10 \u5bc6\u7801(\u4ee5\u5b57\u6bcd\u5f00\u5934\uff0c\u957f\u5ea6\u57286~18\u4e4b\u95f4\uff0c\u53ea\u80fd\u5305\u542b\u5b57\u6bcd\u3001\u6570\u5b57\u548c\u4e0b\u5212\u7ebf)\uff1a^[a-zA-Z]\\w{5,17}$\r\n11 \u5f3a\u5bc6\u7801(\u5fc5\u987b\u5305\u542b\u5927\u5c0f\u5199\u5b57\u6bcd\u548c\u6570\u5b57\u7684\u7ec4\u5408\uff0c\u4e0d\u80fd\u4f7f\u7528\u7279\u6b8a\u5b57\u7b26\uff0c\u957f\u5ea6\u57288-10\u4e4b\u95f4)\uff1a^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,10}$  \r\n12 \u65e5\u671f\u683c\u5f0f\uff1a^\\d{4}-\\d{1,2}-\\d{1,2}\r\n13 \u4e00\u5e74\u768412\u4e2a\u6708(01\uff5e09\u548c1\uff5e12)\uff1a^(0?[1-9]|1[0-2])$\r\n14 \u4e00\u4e2a\u6708\u768431\u5929(01\uff5e09\u548c1\uff5e31)\uff1a^((0?[1-9])|((1|2)[0-9])|30|31)$ \r\n15 \u94b1\u7684\u8f93\u5165\u683c\u5f0f\uff1a\r\n16    1.\u6709\u56db\u79cd\u94b1\u7684\u8868\u793a\u5f62\u5f0f\u6211\u4eec\u53ef\u4ee5\u63a5\u53d7:\"10000.00\" \u548c \"10,000.00\", \u548c\u6ca1\u6709 \"\u5206\" \u7684 \"10000\" \u548c \"10,000\"\uff1a^[1-9][0-9]*$ \r\n17    2.\u8fd9\u8868\u793a\u4efb\u610f\u4e00\u4e2a\u4e0d\u4ee50\u5f00\u5934\u7684\u6570\u5b57,\u4f46\u662f,\u8fd9\u4e5f\u610f\u5473\u7740\u4e00\u4e2a\u5b57\u7b26\"0\"\u4e0d\u901a\u8fc7,\u6240\u4ee5\u6211\u4eec\u91c7\u7528\u4e0b\u9762\u7684\u5f62\u5f0f\uff1a^(0|[1-9][0-9]*)$ \r\n18    3.\u4e00\u4e2a0\u6216\u8005\u4e00\u4e2a\u4e0d\u4ee50\u5f00\u5934\u7684\u6570\u5b57.\u6211\u4eec\u8fd8\u53ef\u4ee5\u5141\u8bb8\u5f00\u5934\u6709\u4e00\u4e2a\u8d1f\u53f7\uff1a^(0|-?[1-9][0-9]*)$ \r\n19    4.\u8fd9\u8868\u793a\u4e00\u4e2a0\u6216\u8005\u4e00\u4e2a\u53ef\u80fd\u4e3a\u8d1f\u7684\u5f00\u5934\u4e0d\u4e3a0\u7684\u6570\u5b57.\u8ba9\u7528\u6237\u4ee50\u5f00\u5934\u597d\u4e86.\u628a\u8d1f\u53f7\u7684\u4e5f\u53bb\u6389,\u56e0\u4e3a\u94b1\u603b\u4e0d\u80fd\u662f\u8d1f\u7684\u5427.\u4e0b\u9762\u6211\u4eec\u8981\u52a0\u7684\u662f\u8bf4\u660e\u53ef\u80fd\u7684\u5c0f\u6570\u90e8\u5206\uff1a^[0-9]+(.[0-9]+)?$ \r\n20    5.\u5fc5\u987b\u8bf4\u660e\u7684\u662f,\u5c0f\u6570\u70b9\u540e\u9762\u81f3\u5c11\u5e94\u8be5\u67091\u4f4d\u6570,\u6240\u4ee5\"10.\"\u662f\u4e0d\u901a\u8fc7\u7684,\u4f46\u662f \"10\" \u548c \"10.2\" \u662f\u901a\u8fc7\u7684\uff1a^[0-9]+(.[0-9]{2})?$ \r\n21    6.\u8fd9\u6837\u6211\u4eec\u89c4\u5b9a\u5c0f\u6570\u70b9\u540e\u9762\u5fc5\u987b\u6709\u4e24\u4f4d,\u5982\u679c\u4f60\u8ba4\u4e3a\u592a\u82db\u523b\u4e86,\u53ef\u4ee5\u8fd9\u6837\uff1a^[0-9]+(.[0-9]{1,2})?$ \r\n22    7.\u8fd9\u6837\u5c31\u5141\u8bb8\u7528\u6237\u53ea\u5199\u4e00\u4f4d\u5c0f\u6570.\u4e0b\u9762\u6211\u4eec\u8be5\u8003\u8651\u6570\u5b57\u4e2d\u7684\u9017\u53f7\u4e86,\u6211\u4eec\u53ef\u4ee5\u8fd9\u6837\uff1a^[0-9]{1,3}(,[0-9]{3})*(.[0-9]{1,2})?$ \r\n23    8.1\u52303\u4e2a\u6570\u5b57,\u540e\u9762\u8ddf\u7740\u4efb\u610f\u4e2a \u9017\u53f7+3\u4e2a\u6570\u5b57,\u9017\u53f7\u6210\u4e3a\u53ef\u9009,\u800c\u4e0d\u662f\u5fc5\u987b\uff1a^([0-9]+|[0-9]{1,3}(,[0-9]{3})*)(.[0-9]{1,2})?$ \r\n24    \u5907\u6ce8\uff1a\u8fd9\u5c31\u662f\u6700\u7ec8\u7ed3\u679c\u4e86,\u522b\u5fd8\u4e86\"+\"\u53ef\u4ee5\u7528\"*\"\u66ff\u4ee3\u5982\u679c\u4f60\u89c9\u5f97\u7a7a\u5b57\u7b26\u4e32\u4e5f\u53ef\u4ee5\u63a5\u53d7\u7684\u8bdd(\u5947\u602a,\u4e3a\u4ec0\u4e48?)\u6700\u540e,\u522b\u5fd8\u4e86\u5728\u7528\u51fd\u6570\u65f6\u53bb\u6389\u53bb\u6389\u90a3\u4e2a\u53cd\u659c\u6760,\u4e00\u822c\u7684\u9519\u8bef\u90fd\u5728\u8fd9\u91cc\r\n25 xml\u6587\u4ef6\uff1a^([a-zA-Z]+-?)+[a-zA-Z0-9]+\\\\.[x|X][m|M][l|L]$\r\n26 \u4e2d\u6587\u5b57\u7b26\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a[\\u4e00-\\u9fa5]\r\n27 \u53cc\u5b57\u8282\u5b57\u7b26\uff1a[^\\x00-\\xff]    (\u5305\u62ec\u6c49\u5b57\u5728\u5185\uff0c\u53ef\u4ee5\u7528\u6765\u8ba1\u7b97\u5b57\u7b26\u4e32\u7684\u957f\u5ea6(\u4e00\u4e2a\u53cc\u5b57\u8282\u5b57\u7b26\u957f\u5ea6\u8ba12\uff0cASCII\u5b57\u7b26\u8ba11))\r\n28 \u7a7a\u767d\u884c\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a\\n\\s*\\r    (\u53ef\u4ee5\u7528\u6765\u5220\u9664\u7a7a\u767d\u884c)\r\n29 HTML\u6807\u8bb0\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a&lt;(\\S*?)[^&gt;]*&gt;.*?&lt;\/\\1&gt;|&lt;.*? \/&gt;    (\u7f51\u4e0a\u6d41\u4f20\u7684\u7248\u672c\u592a\u7cdf\u7cd5\uff0c\u4e0a\u9762\u8fd9\u4e2a\u4e5f\u4ec5\u4ec5\u80fd\u90e8\u5206\uff0c\u5bf9\u4e8e\u590d\u6742\u7684\u5d4c\u5957\u6807\u8bb0\u4f9d\u65e7\u65e0\u80fd\u4e3a\u529b)\r\n30 \u9996\u5c3e\u7a7a\u767d\u5b57\u7b26\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a^\\s*|\\s*$\u6216(^\\s*)|(\\s*$)    (\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)\r\n31 \u817e\u8bafQQ\u53f7\uff1a[1-9][0-9]{4,}    (\u817e\u8bafQQ\u53f7\u4ece10000\u5f00\u59cb)\r\n32 \u4e2d\u56fd\u90ae\u653f\u7f16\u7801\uff1a[1-9]\\d{5}(?!\\d)    (\u4e2d\u56fd\u90ae\u653f\u7f16\u7801\u4e3a6\u4f4d\u6570\u5b57)\r\n33 IP\u5730\u5740\uff1a\\d+\\.\\d+\\.\\d+\\.\\d+    (\u63d0\u53d6IP\u5730\u5740\u65f6\u6709\u7528)\r\n34 IP\u5730\u5740\uff1a((?:(?:25[0-5]|2[0-4]\\\\d|[01]?\\\\d?\\\\d)\\\\.){3}(?:25[0-5]|2[0-4]\\\\d|[01]?\\\\d?\\\\d))<\/pre>\n<h2 id=\"java-\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u4f7f\u7528\">java \u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u4f7f\u7528<\/h2>\n<p>java.util.regex \u5305\u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u4e09\u4e2a\u7c7b\uff1a<br \/>\n- Pattern \u7c7b\uff1a<\/p>\n<p>pattern \u5bf9\u8c61\u662f\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u7f16\u8bd1\u8868\u793a\u3002Pattern \u7c7b\u6ca1\u6709\u516c\u5171\u6784\u9020\u65b9\u6cd5\u3002\u8981\u521b\u5efa\u4e00\u4e2a Pattern \u5bf9\u8c61\uff0c\u4f60\u5fc5\u987b\u9996\u5148\u8c03\u7528\u5176\u516c\u5171\u9759\u6001\u7f16\u8bd1\u65b9\u6cd5\uff0c\u5b83\u8fd4\u56de\u4e00\u4e2a Pattern \u5bf9\u8c61\u3002\u8be5\u65b9\u6cd5\u63a5\u53d7\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u4f5c\u4e3a\u5b83\u7684\u7b2c\u4e00\u4e2a\u53c2\u6570\u3002<\/p>\n<p>Matcher \u7c7b\uff1a<br \/>\nMatcher \u5bf9\u8c61\u662f\u5bf9\u8f93\u5165\u5b57\u7b26\u4e32\u8fdb\u884c\u89e3\u91ca\u548c\u5339\u914d\u64cd\u4f5c\u7684\u5f15\u64ce\u3002\u4e0ePattern \u7c7b\u4e00\u6837\uff0cMatcher \u4e5f\u6ca1\u6709\u516c\u5171\u6784\u9020\u65b9\u6cd5\u3002\u4f60\u9700\u8981\u8c03\u7528 Pattern \u5bf9\u8c61\u7684 matcher \u65b9\u6cd5\u6765\u83b7\u5f97\u4e00\u4e2a Matcher \u5bf9\u8c61\u3002<\/p>\n<p>PatternSyntaxException\uff1a<br \/>\nPatternSyntaxException \u662f\u4e00\u4e2a\u975e\u5f3a\u5236\u5f02\u5e38\u7c7b\uff0c\u5b83\u8868\u793a\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5f0f\u4e2d\u7684\u8bed\u6cd5\u9519\u8bef\u3002<\/p>\n<h3 id=\"\u4ee5\u4e0b\u5b9e\u4f8b\u4e2d\u4f7f\u7528\u4e86\u6b63\u5219\u8868\u8fbe\u5f0f-runoob-\u7528\u4e8e\u67e5\u627e\u5b57\u7b26\u4e32\u4e2d\u662f\u5426\u5305\u4e86-runoob-\u5b50\u4e32\">\u4ee5\u4e0b\u5b9e\u4f8b\u4e2d\u4f7f\u7528\u4e86\u6b63\u5219\u8868\u8fbe\u5f0f .<em>runoob.<\/em>\u00a0\u7528\u4e8e\u67e5\u627e\u5b57\u7b26\u4e32\u4e2d\u662f\u5426\u5305\u4e86 runoob \u5b50\u4e32\uff1a<\/h3>\n<pre class=\"lang:default decode:true \">import java.util.regex.*;\r\n\r\nclass RegexExample1{\r\n   public static void main(String args[]){\r\n      String content = \"I am noob \" +\r\n        \"from runoob.com.\";\r\n\r\n      String pattern = \".*runoob.*\";\r\n\r\n      boolean isMatch = Pattern.matches(pattern, content);\r\n      System.out.println(\"\u5b57\u7b26\u4e32\u4e2d\u662f\u5426\u5305\u542b\u4e86 'runoob' \u5b50\u5b57\u7b26\u4e32? \" + isMatch);\r\n   }\r\n}<\/pre>\n<p>\u5b9e\u4f8b\u8f93\u51fa\u7ed3\u679c\u4e3a\uff1a<\/p>\n<pre class=\"lang:default decode:true \">\u5b57\u7b26\u4e32\u4e2d\u662f\u5426\u5305\u542b\u4e86 'runoob' \u5b50\u5b57\u7b26\u4e32? true<\/pre>\n<p>RexUtils<br \/>\ncheckIdCard(String idCard)<br \/>\n\u9a8c\u8bc1\u8eab\u4efd\u8bc1\u53f7\u7801<\/p>\n<p>checkMobile(String mobile)<br \/>\n\u9a8c\u8bc1\u624b\u673a\u53f7\u7801\uff08\u652f\u6301\u56fd\u9645\u683c\u5f0f\uff0c+86135xxxx\u2026\uff08\u4e2d\u56fd\u5185\u5730\uff09\uff0c+00852137xxxx\u2026\uff08\u4e2d\u56fd\u9999\u6e2f\uff09\uff09<\/p>\n<p>boolean checkPhone(String phone)<\/p>\n<p>checkEmail<\/p>\n<p>\u68c0\u9a8c\u662f\u5426\u662f\u7535\u5b50\u90ae\u7bb1\u3002\u683c\u5f0f\u662f\u6570\u5b57\uff0c\u5b57\u6bcd\uff0c\u4e0b\u5212\u7ebf\uff0c\u4f46\u4e0d\u542b\u6709 -\u3002<\/p>\n<p>checkDigit<br \/>\n\u9a8c\u8bc1\u662f\u5426\u662f\u6574\u6570<\/p>\n<p>checkDecimals<br \/>\n\u9a8c\u8bc1\u6574\u6570\u548c\u6d6e\u70b9\u6570<\/p>\n<p>checkBlankSpace<br \/>\n\u68c0\u9a8c\u662f\u5426\u662f\u7a7a\u767d\u5b57\u7b26<\/p>\n<p>checkChinese<br \/>\n\u68c0\u9a8c\u662f\u5426\u662f\u4e2d\u6587<\/p>\n<p>checkBirthday<br \/>\n\u9a8c\u8bc1\u65e5\u671f\uff08\u65e5\u671f\uff0c\u683c\u5f0f\uff1a1992-09-03\uff0c\u62161992.09.03\uff09<\/p>\n<p>\u9a8c\u8bc1 URL \u5730\u5740<br \/>\n\u683c\u5f0f\uff1ahttp:\/\/blog.csdn.net\/gdutxiaoxu\/article\/details\/71732642\u6216 http:\/\/www.csdn.net:80<\/p>\n<p>checkIpAddress<br \/>\n\u5339\u914d IP \u5730\u5740<\/p>\n<p>phoneNoHide<br \/>\n\u624b\u673a\u53f7\u7801\uff0c\u4e2d\u95f44\u4f4d\u661f\u53f7\u66ff\u6362<\/p>\n<p>cardIdHide<br \/>\n\u94f6\u884c\u5361\u53f7\uff0c\u4fdd\u7559\u6700\u540e4\u4f4d\uff0c\u5176\u4ed6\u661f\u53f7\u66ff\u6362<\/p>\n<h3 id=\"rexutisl-\u5de5\u5177\u7c7b\u6e90\u7801\">\nRexUtisl <a href=\"https:\/\/qtvz.com\/tag\/%e5%b7%a5%e5%85%b7%e7%b1%bb\" class=\"tag-tooltip\" data-toggle=\"tooltip\" title=\"\u67e5\u770b\u66f4\u591a\u5173\u4e8e \u5de5\u5177\u7c7b \u7684\u6587\u7ae0\" target=\"_blank\">\u5de5\u5177\u7c7b<\/a>\u6e90\u7801<\/h3>\n<pre class=\"lang:default decode:true\"> * \u6b63\u5219<a href=\"https:\/\/qtvz.com\/tag\/%e5%b7%a5%e5%85%b7%e7%b1%bb\" class=\"tag-tooltip\" data-toggle=\"tooltip\" title=\"\u67e5\u770b\u66f4\u591a\u5173\u4e8e \u5de5\u5177\u7c7b \u7684\u6587\u7ae0\" target=\"_blank\">\u5de5\u5177\u7c7b<\/a>\r\n * \u63d0\u4f9b\u9a8c\u8bc1\u90ae\u7bb1\u3001\u624b\u673a\u53f7\u3001\u7535\u8bdd\u53f7\u7801\u3001\u8eab\u4efd\u8bc1\u53f7\u7801\u3001\u6570\u5b57\u7b49\u65b9\u6cd5\r\n *\/\r\npublic final class RegexUtil {\r\n\r\n    \/**\r\n     * \u624b\u673a\u53f7\u7801\uff0c\u4e2d\u95f44\u4f4d\u661f\u53f7\u66ff\u6362\r\n     *\r\n     * @param phone \u624b\u673a\u53f7\r\n     * @return \u661f\u53f7\u66ff\u6362\u7684\u624b\u673a\u53f7\r\n     *\/\r\n    public static String phoneNoHide(String phone) {\r\n        \/\/ \u62ec\u53f7\u8868\u793a\u7ec4\uff0c\u88ab\u66ff\u6362\u7684\u90e8\u5206$n\u8868\u793a\u7b2cn\u7ec4\u7684\u5185\u5bb9\r\n        \/\/ \u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\uff0c\u66ff\u6362\u5b57\u7b26\u4e32\uff0c\u62ec\u53f7\u7684\u610f\u601d\u662f\u5206\u7ec4\uff0c\u5728replace()\u65b9\u6cd5\u4e2d\uff0c\r\n        \/\/ \u53c2\u6570\u4e8c\u4e2d\u53ef\u4ee5\u4f7f\u7528$n(n\u4e3a\u6570\u5b57)\u6765\u4f9d\u6b21\u5f15\u7528\u6a21\u5f0f\u4e32\u4e2d\u7528\u62ec\u53f7\u5b9a\u4e49\u7684\u5b57\u4e32\u3002\r\n        \/\/ \"(\\d{3})\\d{4}(\\d{4})\", \"$1****$2\"\u7684\u8fd9\u4e2a\u610f\u601d\u5c31\u662f\u7528\u62ec\u53f7\uff0c\r\n        \/\/ \u5206\u4e3a(\u524d3\u4e2a\u6570\u5b57)\u4e2d\u95f44\u4e2a\u6570\u5b57(\u6700\u540e4\u4e2a\u6570\u5b57)\u66ff\u6362\u4e3a(\u7b2c\u4e00\u7ec4\u6570\u503c\uff0c\u4fdd\u6301\u4e0d\u53d8$1)(\u4e2d\u95f4\u4e3a*)(\u7b2c\u4e8c\u7ec4\u6570\u503c\uff0c\u4fdd\u6301\u4e0d\u53d8$2)\r\n        return phone.replaceAll(\"(\\\\d{3})\\\\d{4}(\\\\d{4})\", \"$1****$2\");\r\n    }\r\n\r\n    \/**\r\n     * \u94f6\u884c\u5361\u53f7\uff0c\u4fdd\u7559\u6700\u540e4\u4f4d\uff0c\u5176\u4ed6\u661f\u53f7\u66ff\u6362\r\n     *\r\n     * @param cardId \u5361\u53f7\r\n     * @return \u661f\u53f7\u66ff\u6362\u7684\u94f6\u884c\u5361\u53f7\r\n     *\/\r\n    public static String cardIdHide(String cardId) {\r\n        return cardId.replaceAll(\"\\\\d{15}(\\\\d{3})\", \"**** **** **** **** $1\");\r\n    }\r\n\r\n    \/**\r\n     * \u8eab\u4efd\u8bc1\u53f7\uff0c\u4e2d\u95f410\u4f4d\u661f\u53f7\u66ff\u6362\r\n     *\r\n     * @param id \u8eab\u4efd\u8bc1\u53f7\r\n     * @return \u661f\u53f7\u66ff\u6362\u7684\u8eab\u4efd\u8bc1\u53f7\r\n     *\/\r\n    public static String idHide(String id) {\r\n        return id.replaceAll(\"(\\\\d{4})\\\\d{10}(\\\\d{4})\", \"$1** **** ****$2\");\r\n    }\r\n\r\n    \/**\r\n     * \u662f\u5426\u4e3a\u8f66\u724c\u53f7\uff08\u6caaA88888\uff09\r\n     *\r\n     * @param vehicleNo \u8f66\u724c\u53f7\r\n     * @return \u662f\u5426\u4e3a\u8f66\u724c\u53f7\r\n     *\/\r\n\r\n    public static boolean checkVehicleNo(String vehicleNo) {\r\n        Pattern pattern = Pattern.compile(\"^[\\u4e00-\\u9fa5]{1}[a-zA-Z]{1}[a-zA-Z_0-9]{5}$\");\r\n        return pattern.matcher(vehicleNo).find();\r\n\r\n    }\r\n\r\n    \/**\r\n     * \u9a8c\u8bc1\u8eab\u4efd\u8bc1\u53f7\u7801\r\n     *\r\n     * @param idCard \u5c45\u6c11\u8eab\u4efd\u8bc1\u53f7\u780115\u4f4d\u621618\u4f4d\uff0c\u6700\u540e\u4e00\u4f4d\u53ef\u80fd\u662f\u6570\u5b57\u6216\u5b57\u6bcd\r\n     * @return \u9a8c\u8bc1\u6210\u529f\u8fd4\u56detrue\uff0c\u9a8c\u8bc1\u5931\u8d25\u8fd4\u56defalse\r\n     *\/\r\n    public static boolean checkIdCard(String idCard) {\r\n        String regex = \"[1-9]\\\\d{13,16}[a-zA-Z0-9]{1}\";\r\n        return Pattern.matches(regex, idCard);\r\n    }\r\n\r\n\r\n    \/**\r\n     * \u9a8c\u8bc1\u624b\u673a\u53f7\u7801\uff08\u652f\u6301\u56fd\u9645\u683c\u5f0f\uff0c+86135xxxx...\uff08\u4e2d\u56fd\u5185\u5730\uff09\uff0c+00852137xxxx...\uff08\u4e2d\u56fd\u9999\u6e2f\uff09\uff09\r\n     *\r\n     * @param mobile \u79fb\u52a8\u3001\u8054\u901a\u3001\u7535\u4fe1\u8fd0\u8425\u5546\u7684\u53f7\u7801\u6bb5\r\n     *               &lt;p&gt;\u79fb\u52a8\u7684\u53f7\u6bb5\uff1a134(0-8)\u3001135\u3001136\u3001137\u3001138\u3001139\u3001147\uff08\u9884\u8ba1\u7528\u4e8eTD\u4e0a\u7f51\u5361\uff09\r\n     *               \u3001150\u3001151\u3001152\u3001157\uff08TD\u4e13\u7528\uff09\u3001158\u3001159\u3001187\uff08\u672a\u542f\u7528\uff09\u3001188\uff08TD\u4e13\u7528\uff09&lt;\/p&gt;\r\n     *               &lt;p&gt;\u8054\u901a\u7684\u53f7\u6bb5\uff1a130\u3001131\u3001132\u3001155\u3001156\uff08\u4e16\u754c\u98ce\u4e13\u7528\uff09\u3001185\uff08\u672a\u542f\u7528\uff09\u3001186\uff083g\uff09&lt;\/p&gt;\r\n     *               &lt;p&gt;\u7535\u4fe1\u7684\u53f7\u6bb5\uff1a133\u3001153\u3001180\uff08\u672a\u542f\u7528\uff09\u3001189&lt;\/p&gt;\r\n     * @return \u9a8c\u8bc1\u6210\u529f\u8fd4\u56detrue\uff0c\u9a8c\u8bc1\u5931\u8d25\u8fd4\u56defalse\r\n     *\/\r\n    public static boolean checkMobile(String mobile) {\r\n        String regex = \"(\\\\+\\\\d+)?1[3458]\\\\d{9}$\";\r\n        return Pattern.matches(regex, mobile);\r\n    }\r\n\r\n    \/**\r\n     * \u9a8c\u8bc1\u56fa\u5b9a\u7535\u8bdd\u53f7\u7801\r\n     *\r\n     * @param phone \u7535\u8bdd\u53f7\u7801\uff0c\u683c\u5f0f\uff1a\u56fd\u5bb6\uff08\u5730\u533a\uff09\u7535\u8bdd\u4ee3\u7801 + \u533a\u53f7\uff08\u57ce\u5e02\u4ee3\u7801\uff09 + \u7535\u8bdd\u53f7\u7801\uff0c\u5982\uff1a+8602085588447\r\n     *              &lt;p&gt;&lt;b&gt;\u56fd\u5bb6\uff08\u5730\u533a\uff09 \u4ee3\u7801 \uff1a&lt;\/b&gt;\u6807\u8bc6\u7535\u8bdd\u53f7\u7801\u7684\u56fd\u5bb6\uff08\u5730\u533a\uff09\u7684\u6807\u51c6\u56fd\u5bb6\uff08\u5730\u533a\uff09\u4ee3\u7801\u3002\u5b83\u5305\u542b\u4ece 0 \u5230 9 \u7684\u4e00\u4f4d\u6216\u591a\u4f4d\u6570\u5b57\uff0c\r\n     *              \u6570\u5b57\u4e4b\u540e\u662f\u7a7a\u683c\u5206\u9694\u7684\u56fd\u5bb6\uff08\u5730\u533a\uff09\u4ee3\u7801\u3002&lt;\/p&gt;\r\n     *              &lt;p&gt;&lt;b&gt;\u533a\u53f7\uff08\u57ce\u5e02\u4ee3\u7801\uff09\uff1a&lt;\/b&gt;\u8fd9\u53ef\u80fd\u5305\u542b\u4e00\u4e2a\u6216\u591a\u4e2a\u4ece 0 \u5230 9 \u7684\u6570\u5b57\uff0c\u5730\u533a\u6216\u57ce\u5e02\u4ee3\u7801\u653e\u5728\u5706\u62ec\u53f7\u2014\u2014\r\n     *              \u5bf9\u4e0d\u4f7f\u7528\u5730\u533a\u6216\u57ce\u5e02\u4ee3\u7801\u7684\u56fd\u5bb6\uff08\u5730\u533a\uff09\uff0c\u5219\u7701\u7565\u8be5\u7ec4\u4ef6\u3002&lt;\/p&gt;\r\n     *              &lt;p&gt;&lt;b&gt;\u7535\u8bdd\u53f7\u7801\uff1a&lt;\/b&gt;\u8fd9\u5305\u542b\u4ece 0 \u5230 9 \u7684\u4e00\u4e2a\u6216\u591a\u4e2a\u6570\u5b57 &lt;\/p&gt;\r\n     * @return \u9a8c\u8bc1\u6210\u529f\u8fd4\u56detrue\uff0c\u9a8c\u8bc1\u5931\u8d25\u8fd4\u56defalse\r\n     *\/\r\n    public static boolean checkPhone(String phone) {\r\n        String regex = \"(\\\\+\\\\d+)?(\\\\d{3,4}\\\\-?)?\\\\d{7,8}$\";\r\n        return Pattern.matches(regex, phone);\r\n    }\r\n\r\n    \/**\r\n     * \u9a8c\u8bc1Email\r\n     *\r\n     * @param email email\u5730\u5740\uff0c\u683c\u5f0f\uff1azhangsan@sina.com\uff0czhangsan@xxx.com.cn\uff0cxxx\u4ee3\u8868\u90ae\u4ef6\u670d\u52a1\u5546\r\n     * @return \u9a8c\u8bc1\u6210\u529f\u8fd4\u56detrue\uff0c\u9a8c\u8bc1\u5931\u8d25\u8fd4\u56defalse\r\n     *\/\r\n    public static boolean checkEmail(String email) {\r\n        String regex = \"\\\\w+@\\\\w+\\\\.[a-z]+(\\\\.[a-z]+)?\";\r\n        return Pattern.matches(regex, email);\r\n    }\r\n\r\n    \/**\r\n     * \u9a8c\u8bc1\u6574\u6570\uff08\u6b63\u6574\u6570\u548c\u8d1f\u6574\u6570\uff09\r\n     *\r\n     * @param digit \u4e00\u4f4d\u6216\u591a\u4f4d0-9\u4e4b\u95f4\u7684\u6574\u6570\r\n     * @return \u9a8c\u8bc1\u6210\u529f\u8fd4\u56detrue\uff0c\u9a8c\u8bc1\u5931\u8d25\u8fd4\u56defalse\r\n     *\/\r\n    public static boolean checkDigit(String digit) {\r\n        String regex = \"\\\\-?[1-9]\\\\d+\";\r\n        return Pattern.matches(regex, digit);\r\n    }\r\n\r\n    \/**\r\n     * \u9a8c\u8bc1\u6574\u6570\u548c\u6d6e\u70b9\u6570\uff08\u6b63\u8d1f\u6574\u6570\u548c\u6b63\u8d1f\u6d6e\u70b9\u6570\uff09\r\n     *\r\n     * @param decimals \u4e00\u4f4d\u6216\u591a\u4f4d0-9\u4e4b\u95f4\u7684\u6d6e\u70b9\u6570\uff0c\u5982\uff1a1.23\uff0c233.30\r\n     * @return \u9a8c\u8bc1\u6210\u529f\u8fd4\u56detrue\uff0c\u9a8c\u8bc1\u5931\u8d25\u8fd4\u56defalse\r\n     *\/\r\n    public static boolean checkDecimals(String decimals) {\r\n        String regex = \"\\\\-?[1-9]\\\\d+(\\\\.\\\\d+)?\";\r\n        return Pattern.matches(regex, decimals);\r\n    }\r\n\r\n    \/**\r\n     * \u9a8c\u8bc1\u7a7a\u767d\u5b57\u7b26\r\n     *\r\n     * @param blankSpace \u7a7a\u767d\u5b57\u7b26\uff0c\u5305\u62ec\uff1a\u7a7a\u683c\u3001\\t\u3001\\n\u3001\\r\u3001\\f\u3001\\x0B\r\n     * @return \u9a8c\u8bc1\u6210\u529f\u8fd4\u56detrue\uff0c\u9a8c\u8bc1\u5931\u8d25\u8fd4\u56defalse\r\n     *\/\r\n    public static boolean checkBlankSpace(String blankSpace) {\r\n        String regex = \"\\\\s+\";\r\n        return Pattern.matches(regex, blankSpace);\r\n    }\r\n\r\n    \/**\r\n     * \u9a8c\u8bc1\u4e2d\u6587\r\n     *\r\n     * @param chinese \u4e2d\u6587\u5b57\u7b26\r\n     * @return \u9a8c\u8bc1\u6210\u529f\u8fd4\u56detrue\uff0c\u9a8c\u8bc1\u5931\u8d25\u8fd4\u56defalse\r\n     *\/\r\n    public static boolean checkChinese(String chinese) {\r\n        String regex = \"^[\\u4E00-\\u9FA5]+$\";\r\n        return Pattern.matches(regex, chinese);\r\n    }\r\n\r\n    \/**\r\n     * \u9a8c\u8bc1\u65e5\u671f\uff08\u5e74\u6708\u65e5\uff09\r\n     *\r\n     * @param birthday \u65e5\u671f\uff0c\u683c\u5f0f\uff1a1992-09-03\uff0c\u62161992.09.03\r\n     * @return \u9a8c\u8bc1\u6210\u529f\u8fd4\u56detrue\uff0c\u9a8c\u8bc1\u5931\u8d25\u8fd4\u56defalse\r\n     *\/\r\n    public static boolean checkBirthday(String birthday) {\r\n        String regex = \"[1-9]{4}([-.\/])\\\\d{1,2}\\\\1\\\\d{1,2}\";\r\n        return Pattern.matches(regex, birthday);\r\n    }\r\n\r\n    \/**\r\n     * \u9a8c\u8bc1URL\u5730\u5740\r\n     *\r\n     * @param url \u683c\u5f0f\uff1ahttp:\/\/blog.csdn.net\/gdutxiaoxu\/article\/details\/71732642\u6216 http:\/\/www.csdn.net:80\r\n     * @return \u9a8c\u8bc1\u6210\u529f\u8fd4\u56detrue\uff0c\u9a8c\u8bc1\u5931\u8d25\u8fd4\u56defalse\r\n     *\/\r\n    public static boolean checkURL(String url) {\r\n        String regex = \"(https?:\/\/(w{3}\\\\.)?)?\\\\w+\\\\.\\\\w+(\\\\.[a-zA-Z]+)*(:\\\\d{1,5})?(\/\\\\w*)*(\\\\??(.+=.*)?(&amp;.+=.*)?)?\";\r\n        return Pattern.matches(regex, url);\r\n    }\r\n\r\n    \/**\r\n     * \u5339\u914d\u4e2d\u56fd\u90ae\u653f\u7f16\u7801\r\n     *\r\n     * @param postcode \u90ae\u653f\u7f16\u7801\r\n     * @return \u9a8c\u8bc1\u6210\u529f\u8fd4\u56detrue\uff0c\u9a8c\u8bc1\u5931\u8d25\u8fd4\u56defalse\r\n     *\/\r\n    public static boolean checkPostcode(String postcode) {\r\n        String regex = \"[1-9]\\\\d{5}\";\r\n        return Pattern.matches(regex, postcode);\r\n    }\r\n\r\n    \/**\r\n     * \u5339\u914dIP\u5730\u5740(\u7b80\u5355\u5339\u914d\uff0c\u683c\u5f0f\uff0c\u5982\uff1a192.168.1.1\uff0c127.0.0.1\uff0c\u6ca1\u6709\u5339\u914dIP\u6bb5\u7684\u5927\u5c0f)\r\n     *\r\n     * @param ipAddress IPv4\u6807\u51c6\u5730\u5740\r\n     * @return \u9a8c\u8bc1\u6210\u529f\u8fd4\u56detrue\uff0c\u9a8c\u8bc1\u5931\u8d25\u8fd4\u56defalse\r\n     *\/\r\n    public static boolean checkIpAddress(String ipAddress) {\r\n        String regex = \"[1-9](\\\\d{1,2})?\\\\.(0|([1-9](\\\\d{1,2})?))\\\\.(0|([1-9](\\\\d{1,2})?))\\\\.(0|([1-9](\\\\d{1,2})?))\";\r\n        return Pattern.matches(regex, ipAddress);\r\n    }\r\n\r\n}<\/pre>\n<p>CSDN \u539f\u6587\uff1ahttps:\/\/blog.csdn.net\/gdutxiaoxu\/article\/details\/77800756<\/p>\n<!--wp-compress-html no compression--><!--wp-compress-html-->","protected":false},"excerpt":{"rendered":"java \u6b63\u5219\u8868\u8fbe\u5f0f\u5e38\u7528\u7684\u5b57\u7b26\u8bf4\u660e \u5b57\u7b26 \u8bf4\u660e \\ \u5c06\u4e0b\u4e00\u5b57\u7b26\u6807\u8bb0\u4e3a\u7279\u6b8a\u5b57\u7b26\u3001\u6587\u672c\u3001\u53cd\u5411\u5f15\u7528\u6216\u516b\u8fdb\u5236\u8f6c\u4e49\u7b26\u3002\u4f8b\u5982\uff0c\u201dn\u201d\u5339\u914d\u5b57\u7b26\u201dn\u201d\u3002\u201d\\n\u201d\u5339\u914d\u6362\u884c\u7b26\u3002\u5e8f\u5217\u201d\\\\\u201d\u5339\u914d\u201d\\\u201d\uff0c\u201d\\(\u201c\u5339\u914d\u201d(\u201c\u3002 \u00b7\u00b7\u00b7","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41],"tags":[61,60],"views":11748,"_links":{"self":[{"href":"https:\/\/qtvz.com\/api\/wp\/v2\/posts\/192"}],"collection":[{"href":"https:\/\/qtvz.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qtvz.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/comments?post=192"}],"version-history":[{"count":3,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/posts\/192\/revisions"}],"predecessor-version":[{"id":195,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/posts\/192\/revisions\/195"}],"wp:attachment":[{"href":"https:\/\/qtvz.com\/api\/wp\/v2\/media?parent=192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/categories?post=192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/tags?post=192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}