贪婪匹配:在满足匹配时,匹配尽可能长的字符串,默认情况下,采用贪婪匹配stringpattern1=@"a.*c";//greedymatchRegexregex=newRegex(pattern1);
regex.Match("abcabc");//return"abcabc"非贪婪匹配:在满足匹配时,匹配尽可能短的字符串,使用?来表示非贪婪匹配stringpattern..
分类:
其他好文 时间:
2015-12-15 19:38:09
阅读次数:
238
清空VisualStudio文件缓存目录Just delete or rename this folder:%AppData%\..\Local\Microsoft\VisualStudio\11.0\ComponentModelCacheor%AppData%\..\Local\Microsoft...
分类:
其他好文 时间:
2015-12-14 18:13:27
阅读次数:
203
对手势感到好奇从网上学习了一部分。保存:在xml中添加手势绘制即类似画板可以绘制手势的:<android.gesture.GestureOverlayView
android:id="@+id/gesture"
android:layout_width="match_parent"
android:layout_height="match_parent"/>设置手势的一些属性:mGov=(Gest..
分类:
移动开发 时间:
2015-12-14 12:36:21
阅读次数:
242
题目:Given apatternand a stringstr, find ifstrfollows the same pattern.Herefollowmeans a full match, such that there is a bijection between a letter inp...
分类:
其他好文 时间:
2015-12-13 07:18:32
阅读次数:
232
方法matchexectest调用方法str.match(reg)reg.exec(str)reg.test(str)说明如果正则式为全局匹配,则返回所有匹配的字符串,但是当有子表达式时,不匹配子表达式,只执行全局匹配如果正则式为全局匹配,只返回存在的第一个匹配结果,但是当有子表达式时,返回值不仅有...
分类:
Web程序 时间:
2015-12-12 11:05:51
阅读次数:
159
fis3 开启相对地址//全局或本地安装插件npm install -g fis3-hook-relative//启用插件fis.hook('relative');//让所有文件,都使用相对路径。fis.match('**', { relative:true})
分类:
其他好文 时间:
2015-12-10 18:54:43
阅读次数:
163
今天碰到一个关于Button的问题:android Button上面的英文字符串会自动变成大写,运行的Android 5.1版本,如下图所示:图1:Button 图2:TextView这个Button的定义代码如下 <Button
android:id="@+id/addContacts"
android:layout_width="match_p...
分类:
移动开发 时间:
2015-12-10 13:33:19
阅读次数:
167
Merge 的On子句指定Match condition,When子句指定过滤条件,如果Source Table和Targe Table匹配的上,很好理解;如果匹配不上,必须深入理解不匹配的条件,否则,就很容易出错。1,创建示例数据create table dbo.dt_source( ID ...
分类:
数据库 时间:
2015-12-09 19:07:47
阅读次数:
192
Array & String大纲 1. 入门题 string match 2. Array 中 HashTable 的应用 3. C/C++ 中的 string 4. 例题分析part 1 入门题 在 source(母串)中,寻找 target(子串) 是否出现。/* Returns th...
分类:
编程语言 时间:
2015-12-07 22:39:07
阅读次数:
301
今天遇到该问题,clean and rebuild 不行。Tools->Options->Debugging->General->去掉Require source files to exactly match the original version之前的勾即可。我怀疑可能是输入某些不兼容的编码导致...
分类:
其他好文 时间:
2015-12-05 20:57:35
阅读次数:
124