码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果
一天一段scala代码(十四)
一天一段scala代码(十四)        为了更好的驾驭spark,最近在学习scala语言特性,主要看《快学scala》,顺便把一些自己认为有用的代码记下来。 package examples object Example14 extends App{ var ch='9' var sign= ch match{ case '+' => 1...
分类:其他好文   时间:2015-04-05 23:34:52    阅读次数:192
Python正则表达式
正则表达式是非正常重要的知识点,他在许许多多的地方都有应用,既是重点,也是难点。使用正则表达式需要调用re模块re模块常用的方法:1、re.serach()re.search 函数会在字符串内查找模式匹配,只到找到第一个匹配然后返回,如果字符串没有匹配,则返回None。2、re.match()re....
分类:编程语言   时间:2015-04-05 11:56:17    阅读次数:185
DEDECMS织梦自定义表单中必填项、电话邮箱过滤以及验证码规则
织梦自定义表单必填项规则--->(wwwshu-acca.com网站表单)1. 在plus/diy.php 的第 40行下加如下代码:1234567891011121314151617//增加必填字段判断if($required!=''){if(preg_match('/,/', $required...
分类:其他好文   时间:2015-04-05 10:32:38    阅读次数:212
典型程序实现代码汇总(1)
/** * 一个词组的单词如果是另一个词组单词的子集,就认为是个borad match,例如对于 "a b c","a", "b c" "c a" "a b c"都匹配,而 "a d"不匹配。 * 现有一个搜索匹配模块,输入为用户的查询来匹配一个词组字典,找到字典中所有可以和输入broad matc...
分类:其他好文   时间:2015-04-04 13:41:50    阅读次数:116
写个Elasticsearch的client库简化操作
[TestMethod] public void Analyze() { string[] d = mIndex.Analyze("c# socket", "ik"); } [TestMethod] public void match() { ILi...
分类:其他好文   时间:2015-04-03 19:47:07    阅读次数:195
根据路径获得文件名以及Aspose.Cells.dll操作office(主要是excel)
string result = Regex.Match(str,@"[^\\]+$").Value;//正则表达式this.listBox1.Items.Add(Path.GetFileName(str) + " ");//方法 //读取Excel中数据 到datata...
分类:Web程序   时间:2015-04-03 15:13:19    阅读次数:132
<<鬼斧神工之正则表达式>>笔记整理
第1章 初识正则表达式正则表达式定义正则表达式是一种字符串搜索和匹配的工具正则表达式应用举例手机输入法Windows文件搜索Linux列出文件命令网站用户注册第2章 正则表达式函数解析PHP中常用的正则表达式函数$pattern= 正则表达式$subject= 匹配的目标函数preg_match($...
分类:其他好文   时间:2015-04-03 13:10:33    阅读次数:186
always中的敏感变量
always语句下如果有判断语句if,那么if语句中的条件必须有always中的敏感变量。否则错误提示为:Error (10200): Verilog HDL Conditional Statement error at ……: cannot match operand(s) in the cond...
分类:其他好文   时间:2015-04-02 22:07:49    阅读次数:298
ProgressBar
RoundedprogresswithinRoundedprogressbar<ProgressBarandroid:id="@+id/progress"style="@android:style/Widget.ProgressBar.Horizontal"android:layout_width="match_parent"android:layout_height="match_parent"android:layout_alignParentLeft="true"android:layout_ce..
分类:其他好文   时间:2015-04-01 13:34:16    阅读次数:110
grep常用用法
grep简介正如linux的man文件中所描述的那样: grep searches the named input FILEs (or standard input if no files are named, or if a single hyphen-minus (-) is given as file name) for lines containing a match to...
分类:其他好文   时间:2015-03-31 22:21:16    阅读次数:167
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!