(function(e){function t(t){for(var l,i,n=t[0],u=t[1],c=t[2],p=0,d=[];p.*<\/\1>|<(.*) \/>/,example:"如:
"},{title:"是否qq号格式正确",rule:/^[1-9][0-9]{4,10}$/,example:"如: 903013545、9020304"},{title:"是否由数字和字母组成",rule:/^[A-Za-z0-9]+$/,example:"如: james666、haha233hi"},{title:"纯英文字母",rule:/^[a-zA-Z]+$/,example:"如: russel"},{title:"纯小写英文字母组成",rule:/^[a-z]+$/,example:"如: russel"},{title:"纯大写英文字母",rule:/^[A-Z]+$/,example:"如: ABC、KD"},{title:"密码强度正则,最少6位,包括至少1个大写字母,1个小写字母,1个数字,1个特殊字符",rule:/^.*(?=.{6,})(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*? ]).*$/,example:"如: Kd@curry666"},{title:"用户名正则,4到16位(字母,数字,下划线,减号)",rule:/^[a-zA-Z0-9_-]{4,16}$/,example:"如: xiaohua_qq"},{title:"ipv4地址正则",rule:/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,example:"如: 172.16.0.0、127.0.0.0"},{title:"16进制颜色",rule:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,example:"如: #f00 、#F90、#000、 #fe9de8"},{title:"微信号,6至20位,以字母开头,字母,数字,减号,下划线",rule:/^[a-zA-Z]([-_a-zA-Z0-9]{5,19})+$/,example:"如: github666、kd_-666"},{title:"中国邮政编码",rule:/^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/,example:"如: 734500、100101"},{title:"只包含中文和数字",rule:/^(([\u4E00-\u9FA5])|(\d))+$/,example:"如: 哈哈哈、你好6啊"},{title:"非字母",rule:/[^A-Za-z]$/,example:"如: 你好6啊、Q3Q、ABC@¥()!"}]},"56d7":function(e,t,r){"use strict";r.r(t);r("dac5"),r("6e26"),r("9604"),r("df67");var l=r("6e6d"),s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("main",[r("article",{staticClass:"fixed"},[r("a",{staticClass:"github",attrs:{onclick:"_hmt.push(['_trackEvent', '交互', '点击github', '悬浮'])",href:"https://github.com/any86/any-rule",target:"_blank"}},[r("svg",{attrs:{height:"20",viewBox:"0 0 16 16",version:"1.1",width:"20","aria-hidden":"true"}},[r("path",{attrs:{"fill-rule":"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"}})]),r("span",[e._v("github")])]),r("a",{staticClass:"message",attrs:{onclick:"_hmt.push(['_trackEvent', '交互', '留言'])",href:"https://github.com/any86/any-rule/issues/new",target:"_blank"}},[e._v("留言")])]),r("header",[r("h1",[e._v("正则大全")]),r("a",{staticClass:"github",staticStyle:{"margin-left":"15px",color:"#000"},attrs:{onclick:"_hmt.push(['_trackEvent', '交互', '点击github', '头部'])",href:"https://github.com/any86/any-rule",target:"_blank"}},[r("svg",{attrs:{height:"20",viewBox:"0 0 16 16",version:"1.1",width:"20","aria-hidden":"true"}},[r("path",{attrs:{"fill-rule":"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"}})]),r("span",[e._v("github")])]),r("iframe",{staticStyle:{display:"block","margin-top":"15px"},attrs:{src:"https://ghbtns.com/github-btn.html?user=any86&repo=any-rule&type=star&count=true",frameborder:"0",scrolling:"0",width:"170px",height:"20px"}}),r("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],ref:"searchInput",staticClass:"search-input",attrs:{autofocus:"",placeholder:"搜索关键词, 如'手机'",type:"text"},domProps:{value:e.keyword},on:{keyup:e.search,mouseenter:e.selectSearchInputText,focus:e.selectSearchInputText,input:function(t){t.target.composing||(e.keyword=t.target.value)}}})]),r("article",[0-1:e.list[l].events.blur},on:{change:function(t){var r=e.list[l].events.blur,s=t.target,a=!!s.checked;if(Array.isArray(r)){var i=null,n=e._i(r,i);s.checked?n<0&&e.$set(e.list[l].events,"blur",r.concat([i])):n>-1&&e.$set(e.list[l].events,"blur",r.slice(0,n).concat(r.slice(n+1)))}else e.$set(e.list[l].events,"blur",a)}}}),e._v(" blur\n ")]),r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.list[l].events.keyup,expression:"list[index].events.keyup"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.list[l].events.keyup)?e._i(e.list[l].events.keyup,null)>-1:e.list[l].events.keyup},on:{change:function(t){var r=e.list[l].events.keyup,s=t.target,a=!!s.checked;if(Array.isArray(r)){var i=null,n=e._i(r,i);s.checked?n<0&&e.$set(e.list[l].events,"keyup",r.concat([i])):n>-1&&e.$set(e.list[l].events,"keyup",r.slice(0,n).concat(r.slice(n+1)))}else e.$set(e.list[l].events,"keyup",a)}}}),e._v(" keyup\n ")])])])}),0):r("p",{attrs:{align:"center"}},[e._v("无数据")])])])},a=[],i=(r("bae3"),r("46e9")),n=r.n(i),u=r("7cbd"),c=r.n(u),o={name:"app",components:{},data:function(){return Object.freeze(n.a),{timer:null,keyword:"",rules:n.a,list:n.a.map(function(){return{value:"",isOk:void 0,events:{blur:!0,keyup:!0}}})}},mounted:function(){var e=new c.a(".btn-copy");this.$on("hook:destroyed",function(){e.destroy()});var t=null;e.on("success",function(e){clearTimeout(t);var r=e.trigger;r.classList.contains("success")&&r.classList.remove("success"),r.classList.add("success"),t=setTimeout(function(){r.classList.remove("success")},1e3)})},methods:{search:function(){var e=this;""!==this.keyword?this.rules=this.rules.filter(function(t){var r=t.title;return-1!==r.indexOf(e.keyword.toLowerCase())}):this.rules=n.a,_hmt.push(["_trackEvent","交互","搜索","关键词",this.keyword])},selectSearchInputText:function(){this.$refs.searchInput.select()},autoFocus:function(e){this.$refs.input[e].focus()},mouseenterHandler:function(e){},reset:function(e){var t=this;this.$nextTick(function(){t.list[e].value="",t.list[e].isOk=void 0})},check:function(e,t){var r=this.list[e],l=r.events,s=r.value;if(""===s&&this.reset(e),l[t]){var a=this.rules[e].rule,i=this.list[e];i.isOk=a.test(i.value)}"blur"===t&&_hmt.push(["_trackEvent","交互","input框",this.list[e].value])}}},p=o,d=(r("729e"),r("17cc")),h=Object(d["a"])(p,s,a,!1,null,"5feb50b6",null),v=h.exports;l["a"].config.productionTip=!1,new l["a"]({render:function(e){return e(v)}}).$mount("#app")},"729e":function(e,t,r){"use strict";var l=r("fa72"),s=r.n(l);s.a},fa72:function(e,t,r){}}); //# sourceMappingURL=app.11d4d85e.js.map