{"id":271,"date":"2023-08-18T18:04:57","date_gmt":"2023-08-18T10:04:57","guid":{"rendered":"http:\/\/blog.xjfvps.top\/index.php\/2023\/08\/18\/%e4%b8%80%e4%b8%aa%e6%8d%a2%e8%a1%8c%e7%ac%a6%e5%bc%95%e5%8f%91%e7%9a%84%e9%97%ae%e9%a2%98\/"},"modified":"2023-08-18T21:29:08","modified_gmt":"2023-08-18T13:29:08","slug":"%e4%b8%80%e4%b8%aa%e6%8d%a2%e8%a1%8c%e7%ac%a6%e5%bc%95%e5%8f%91%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/blog.fs.cloudns.biz\/index.php\/2023\/08\/18\/%e4%b8%80%e4%b8%aa%e6%8d%a2%e8%a1%8c%e7%ac%a6%e5%bc%95%e5%8f%91%e7%9a%84%e9%97%ae%e9%a2%98\/","title":{"rendered":"\u4e00\u4e2a\u6362\u884c\u7b26\u5f15\u53d1\u7684\u95ee\u9898"},"content":{"rendered":"<p>&nbsp; &nbsp; &nbsp;\u4eca\u5929\u6536\u5230\u90ae\u4ef6\uff0c\u8bf4\u7532\u65b9\u7684\u8fd0\u7ef4\u4eba\u5458\u901a\u8fc7\u6211\u4eec\u7684\u95e8\u6237\u7cfb\u7edf\u5bfc\u5165\u4e00\u6279\u6570\u636e\uff0c\u4f46\u6709\u4e2a\u522b\u53f7\u7801\u5728\u4e0b\u4e00\u4e2a\u8fd0\u884c\u6a21\u5757\u4e2d\u51fa\u73b0\u5f02\u5e38\uff0c\u67e5\u539f\u56e0\u662f\u7532\u65b9\u5bfc\u5165\u7684\u6570\u636e\u4e2d\uff0c\u4e2a\u522b\u624b\u673a\u53f7\u7801\u5b57\u6bb5\u540e\u5b58\u5728\u4e0d\u53ef\u89c1\u6362\u884c\u7b26\u3002\u68c0\u67e5\u5bfc\u5165\u6a21\u5757\u7684\u4ee3\u7801\uff0c\u6709\u505a\u6821\u9a8c\uff0c\u903b\u8f91\u5927\u6982\u5982\u4e0b\uff08java\uff09\uff1a<\/p>\n<p>&nbsp;<\/p>\n<div class=\"cnblogs_code\">\n<pre> Pattern msisdn =<span style=\"color: #000000;\"> Pattern\n                     . compile(<\/span>\"^((13[0-9])|(15[0-9])|(18[0-9]))\\d{8}$\"<span style=\"color: #000000;\"&gt;);\n\n            <\/span><span style=\"color: #0000ff;\">if<\/span> (a == <span style=\"color: #0000ff;\">null<\/span> || \"\"<span style=\"color: #000000;\">.equals(a)) {\n                System. out.println( <\/span>\"\u79fb\u52a8\u53f7\u7801\u4e0d\u80fd\u4e3a\u7a7a\uff1b&lt;br\/&gt;\"<span style=\"color: #000000;\"&gt; );\n           } <\/span><span style=\"color: #0000ff;\">else<\/span> <span style=\"color: #0000ff;\">if<\/span> (!<span style=\"color: #000000;\">msisdn.matcher(a).find()) {\n                System. out.println( <\/span>\"\u65e0\u6548\u7684\u79fb\u52a8\u53f7\u7801\uff1b&lt;br\/&gt;\"<span style=\"color: #000000;\"&gt; );\n           } <\/span><span style=\"color: #0000ff;\">else<\/span><span style=\"color: #000000;\"> {\n                System. out.println( <\/span>\"\u53f7\u7801\u6b63\u786e\"<span style=\"color: #000000;\"&gt;);\n           }<\/span><\/pre>\n<\/div>\n<p>&nbsp; &nbsp;\u76f4\u89c9\u6211\u4e5f\u89c9\u5f97\u5b83\u80fd\u4ec5\u5339\u914d\u51fa11\u4f4d\u6570\u5b57\u5b57\u7b26\uff0c\u4f46\u7ecf\u8fc7\u5b9e\u9a8c\u53d1\u73b0\uff0c\u5b83\u5c45\u7136\u5ffd\u89c6\u4e86\u6362\u884c\u7b26\uff08\u6709\u548c\u6ca1\u6709\uff0c\u90fd\u4e00\u6837\uff09\u3002&nbsp;<\/p>\n<p>\u8fd9\u4e2a\u60c5\u51b5\u5728perl\u4e2d\u4e5f\u5b58\u5728\uff0c\u67e5\u4e86\u4e00\u4e0b\u8d44\u6599\uff0c\u5982\u679c\u8981\u5339\u914d\u6362\u884c\u7b26\uff0c\u9700\u8981\u52a0\u7279\u522b\u6807\u8bc6\uff0c\u5982perl\u4e2d\u5982\u4f55\u8981\u7528 &lsquo;.&rsquo; \u5339\u914d\u6362\u884c\u7b26\uff0c\u9700\u8981\u4f7f\u7528\/m \/s , \u4e5f\u5c31\u662f\u8bf4\uff0c\u5b83\u9ed8\u8ba4\u5c31\u5ffd\u7565\u6362\u884c\u7b26\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; &nbsp;\u4eca\u5929\u6536\u5230\u90ae\u4ef6\uff0c\u8bf4\u7532\u65b9\u7684\u8fd0\u7ef4\u4eba\u5458\u901a\u8fc7\u6211\u4eec\u7684 &hellip; <a href=\"https:\/\/blog.fs.cloudns.biz\/index.php\/2023\/08\/18\/%e4%b8%80%e4%b8%aa%e6%8d%a2%e8%a1%8c%e7%ac%a6%e5%bc%95%e5%8f%91%e7%9a%84%e9%97%ae%e9%a2%98\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,8,1],"tags":[],"class_list":["post-271","post","type-post","status-publish","format-standard","hentry","category-java","category-8","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts\/271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/comments?post=271"}],"version-history":[{"count":1,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts\/271\/revisions"}],"predecessor-version":[{"id":312,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts\/271\/revisions\/312"}],"wp:attachment":[{"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/media?parent=271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/categories?post=271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/tags?post=271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}