grep命令及基本正则表达式 grep NAME:名称 grep:Global search REgular expression and Print out the line 文本搜索工具,根据用户指定的"模式(pattern)"对目标文本进行过滤,显示被模式匹配到的行。 ...
分类:
其他好文 时间:
2014-11-15 21:28:51
阅读次数:
212
Walking on the Safe Side
Square City is a very easy place for people to walk around. The two-way streets run North-South or East-West dividing the city into regular blocks. Most street int...
分类:
其他好文 时间:
2014-11-14 19:47:01
阅读次数:
270
使用Eclipse可以方便的统计工程或文件的代码行数,方法如下:1.点击要统计的项目或许文件夹,在菜单栏点击Search,然后点击File...2.选中正则表达式(Regular expression),并在搜索文本框输入\n3.在文件名中输入*或*.java4.在范围里选中Enclosing pr...
分类:
系统相关 时间:
2014-11-14 19:28:22
阅读次数:
238
正则表达式prog = re.compile(pattern)result = prog.match(string)pattern:正则表达式内容string:使用正则表达式去匹配的字符串re.compile(pattern)返回一个regular expression object,可使用rege...
分类:
编程语言 时间:
2014-11-11 22:42:18
阅读次数:
310
Brackets
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 3341
Accepted: 1717
Description
We give the following inductive definition of a “regular brackets”...
分类:
其他好文 时间:
2014-11-10 10:08:53
阅读次数:
138
Brackets
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 3340
Accepted: 1716
Description
We give the following inductive definition of a “regular bracket...
分类:
其他好文 时间:
2014-11-08 23:41:30
阅读次数:
280
正则表达式(Regular Expression,缩写为regexp,regex或regxp),又称正规表达式、正规表示式或常规表达式或正规化表示法或正规表示法,是指一个用 来描述或者匹配一系列符合某个句法规则的字符串的单个字符串。在很多文本编辑器或其他工具里,正则表达式通常被用来检索和/或替换那些...
分类:
Web程序 时间:
2014-11-08 20:50:02
阅读次数:
184
查找特定字符串并颜色显示
[root@fwq test]# grep -n 'the' regular_express.txt --color=auto
8:I can't finish the test.
12:the symbol '*' is represented as start.
15:You are the best is mean you are the no. 1.
16:The world is the same with "glad".
18:google is the...
分类:
系统相关 时间:
2014-11-07 17:08:59
阅读次数:
251
Android如何在IDEAEclipse的UIEditor中显示自定义的字体Preview将要显示的字体复制到。android-sdk/platforms/android-[Version]/data/fonts文件夹下面如:FontAwesome-Regular.ttf在android-sdk/platforms/android-[Version]/data/fonts下打开fallback_fonts.xml在最后加上:&..
分类:
移动开发 时间:
2014-11-07 06:25:52
阅读次数:
247
在java doc里有String[] java.lang.String.split(String regex)Splits this string around matches of the given regular expression.This method works as if by i...
分类:
编程语言 时间:
2014-11-07 00:54:21
阅读次数:
334