一、python正则简介 python的re模块,让python能够支持扩展正则 扩展正则的字符集("." "[abc]" "(abc)" "a|b")、锚点("$" "^" "\<\>")、修饰字符("*" "?" "+" "{}") 这里不做介绍 二、re模块中的函数,主要是三种匹配(match ...
分类:
编程语言 时间:
2016-06-16 20:15:32
阅读次数:
265
1、制作一张启动图片splash.png,放置在res->drawable-hdpi文件夹中。
2,布局文件
<RelativeLayout xmlns:Android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="...
分类:
移动开发 时间:
2016-06-16 14:50:19
阅读次数:
176
#mysql_slow.confinput{file{type=>"mysql-slow"path=>"/var/log/mysql_slow_log.log"}}filter{if[type]=="mysql-slow"{#grep{#ignore‘#Time:‘asweusetheSETtimestamptogetthetime.grepisactually#onthedeprecationcyclesoneedtofigureoutanalternativetothis#match=>..
分类:
数据库 时间:
2016-06-16 13:29:21
阅读次数:
356
logstash配置文件#nginx_log.confinput{file{type=>"nginx_log"path=>"/opt/nginx/logs/access.log"}}filter{if[type]=="nginx_log"{grok{match=>{"message"=>"%{NGINXACCESS}"}}if([message]=~"^*launcher*|^*favicon*"){drop{}}geoip{source=>"remote_addr"ta..
分类:
其他好文 时间:
2016-06-16 13:28:06
阅读次数:
443
MPFclass-map:什么流量3-4层:源目ip,协议号,端口5-7层:应用层httpftptelnetpolicy-map:做什么动作3-4层:较简单5-7层:限速,屏蔽关键字,比较复杂service-map:在哪里匹配哪个class执行哪个policyclass-mapASA(config)#class-map3-4
ASA(config-cmap)#match?
mpf-class-ma..
分类:
其他好文 时间:
2016-06-15 11:03:24
阅读次数:
332
///获取url参数值function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match ...
分类:
Web程序 时间:
2016-06-14 11:29:32
阅读次数:
171
required : 必须值验证属性 email : 邮箱验证 match : 正则验证 url : 网址 captcha : 验证码 safe : 安全 compare : 比较 default : 默认值 exist : 存在 file : 文件 filter : 滤镜 in : 范围 uniq ...
分类:
其他好文 时间:
2016-06-13 13:16:56
阅读次数:
114
git help add -A, --all Like -u, but match <filepattern> against files in the working tree in addition to the index. That means that it will find new f ...
分类:
其他好文 时间:
2016-06-13 11:20:57
阅读次数:
123
递归: a = f(5) a等于6 a等于6 只执行一次 注意 怎么正确取值 ? 返回值是一个函数就可以啦 装饰器 : 就这么写 装饰器可以嵌套 把嵌套后的函数当成一个整体 正则表达 match 匹配开头 search 从前向后匹配 没有结果返回none findall 匹配所有 xxxx.grou ...
分类:
其他好文 时间:
2016-06-13 11:17:19
阅读次数:
141
题目链接:https://leetcode.com/problems/word-pattern/
题目:
Given a pattern and a string str,
find if str follows the same pattern.
Here follow means a full match, such that there is a bijection b...
分类:
其他好文 时间:
2016-06-12 02:25:57
阅读次数:
189