{"id":160026,"date":"2020-09-25T11:27:47","date_gmt":"2020-09-25T03:27:47","guid":{"rendered":"http:\/\/4563.org\/?p=160026"},"modified":"2020-09-25T11:27:47","modified_gmt":"2020-09-25T03:27:47","slug":"%e5%a4%a7%e4%bd%ac%e4%bb%ac%e6%80%8e%e4%b9%88%e7%94%a8%e6%ad%a3%e5%88%99%e5%ae%9a%e4%bd%8d%e5%88%b0-%e8%bf%99%e6%a0%b7%e7%9a%84%e5%86%85%e5%ae%b9-xxxxxx-8","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=160026","title":{"rendered":"\u5927\u4f6c\u4eec\u600e\u4e48\u7528\u6b63\u5219\u5b9a\u4f4d\u5230 \u8fd9\u6837\u7684\u5185\u5bb9 XXXXXX : 8"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5927\u4f6c\u4eec\u600e\u4e48\u7528\u6b63\u5219\u5b9a\u4f4d\u5230 \u8fd9\u6837\u7684\u5185\u5bb9 XXXXXX : 8               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AzsharR <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        processor : 0<br \/>BogoMIPS : 38.40<br \/>Features : fp asimd evtstrm aes pmull sha1 sha2 crc32<br \/>CPU implementer : 0x51<br \/>CPU architecture: 8<br \/>CPU variant : 0x2<br \/>CPU part : 0x201<br \/>CPU revision : 1<\/p>\n<p>processor : 1<br \/>BogoMIPS : 38.40<br \/>Features : fp asimd evtstrm aes pmull sha1 sha2 crc32<br \/>CPU implementer : 0x51<br \/>CPU architecture: 8<br \/>CPU variant : 0x2<br \/>CPU part : 0x201<br \/>CPU revision : 1<\/p>\n<p>\u5c31\u662f\u5b9a\u4f4d\u5230\u4e0a\u9762\u8fd9\u6837\u7684<\/p>\n<p>\u4e0b\u9762\u662f\u6211\u81ea\u5df1\u5199\u7684 <br \/>re.findall(r&#8217;processor[swd]{1}&#8217;, a)<br \/>\u7ed3\u679c\u662f[&#8216;processort&#8217;, &#8216;processort&#8217;, &#8216;processort&#8217;, &#8216;processort&#8217;]<br \/>\u5e76\u5b9a\u4f4d\u4e0d\u5230 \u5b8c\u6574\u7684\u5185\u5bb9      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>8<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3451600\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : forty <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5b9a\u5565\u5b9a\u554a\uff0c\u76f4\u63a5\u6309\u8fde\u7eed 2 \u4e2a\u6362\u884c\u7b26\u5206\u5272\u4e0d\u5c31\u884c\u4e86\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3451601\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Rxianbei <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @forty \u5f88\u6709\u9053\u7406                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3451602\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : umissthestars <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \/(n.*?architectures?[:\uff1a]s?8.*?)(?!n)\/gi<\/p>\n<p>\/\/ example<br \/>&#8220;`<br \/>const str = `processor : 0 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x51 CPU architecture: 8 CPU variant : 0x2 CPU part : 0x201 CPU revision : 1<\/p>\n<p>processor : 1 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x51 CPU architecture: 8 CPU variant : 0x2 CPU part : 0x201 CPU revision : 1<\/p>\n<p>processor : 2 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x51 CPU architecture: 8 CPU variant : 0x2 CPU part : 0x205 CPU revision : 1<\/p>\n<p>processor : 3 BogoMIPS : 38.40 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 CPU implementer : 0x51 CPU architecture: 8 CPU variant : 0x2 CPU part : 0x205 CPU revision : 1`<br \/>&#8220;`<br \/>\/\/ output<br \/>&#8220;`<br \/>[&#8220;\u21b5processor : 1 BogoMIPS : 38.40 Features : fp asim\u2026 crc32 CPU implementer : 0x51 CPU architecture: 8&#8221;, &#8220;\u21b5processor : 2 BogoMIPS : 38.40 Features : fp asim\u2026 crc32 CPU implementer : 0x51 CPU architecture: 8&#8221;, &#8220;\u21b5processor : 3 BogoMIPS : 38.40 Features : fp asim\u2026 crc32 CPU implementer : 0x51 CPU architecture: 8&#8221;]<br \/>&#8220;`                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3451603\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qazwsxkevin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             import re<br \/>tarString = &#8220;CPU architecture: 8&#8221;<br \/>getStr = re.sub(&#8216;(?&lt;=:).*?(?=$&#8221;)&#8217;, &#8216;utf-8&#8217;, tarString)<\/p>\n<p># \u65b9\u6cd5 2\uff0c\u5fc5\u5b9a\u662f\u6570\u5b57\u7684\u8bdd<br \/>getStr = re.findall(r&#8221;d+&#8221;,tarString)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3451604\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : AzsharR <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @forty \u56e0\u4e3a\u6bcf\u6b21\uff0c\u5185\u5bb9\u4e0d\u540c\uff0c\u6240\u4ee5\u9700\u8981\u5b9a\u4f4d processor \u8fd9\u4e2a\u5173\u952e\u8bcd\u67e5\u770b\u540e\u9762\u5185\u5bb9\uff0c\u4f46\u662f\u53c8\u56e0\u4e3a processor \u540e\u9762\u53c8\u5f88\u591a\u7a7a\u683c\u5b9a\u4f4d\u4e0d\u5230                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3451605\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : umissthestars <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u8fd9\u8f93\u5165\u548c\u6211\u8fdb\u6765\u65f6\u7684\u4e0d\u4e00\u6837\u4e86&#8230;\u4f60\u53c8\u5077\u5077\u66f4\u65b0\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3451606\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : AzsharR <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @umissthestars \u522b\u4e0d\u597d\u610f\u601d \u56e0\u4e3a\u5448\u73b0\u51fa\u6765\u7684\u683c\u5f0f\u6253\u4e71\u4e86 \u6539\u4e86\u4e00\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3451607\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : caaaalabash <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \/(processor.+?)(?=processor)|(processor.+)(?=$)\/sg                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u4f6c\u4eec\u600e\u4e48\u7528\u6b63\u5219\u5b9a\u4f4d\u5230 \u8fd9\u6837\u7684\u5185\u5bb9&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/160026"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=160026"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/160026\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=160026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=160026"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=160026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}