码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果
英语口语积累随手记----------(1)
情侣间的电灯泡叫做 the third wheelI don't want to be the third wheel. 我可不想当电灯泡。如胶似漆的情侣 love birdsYou wouldn't want to bother any love birds.天生一对 a match made i...
分类:其他好文   时间:2014-09-01 19:05:53    阅读次数:190
常用的正则验证
手机正则function checkphone(num) { var reg = /^[1][358]\d{9}$/; if (!num.match(reg)) { return false; } return true;}邮箱正则function checkEmail(email) ...
分类:其他好文   时间:2014-09-01 19:04:23    阅读次数:152
正则表达式
正则表达式就是对字符串的操作: 匹配 ,查找,替换,分割。。1.php中常用的正则表达式相关的函数preg_match();preg_match_all();preg_replace()str_replace()preg_split()2.php的正则prel的语法什么贪婪,。。。等等
分类:其他好文   时间:2014-09-01 10:35:42    阅读次数:205
验证日期格式
function RQcheck(RQ) { var date = RQ; var result = date.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/); if (resul...
分类:其他好文   时间:2014-09-01 10:30:22    阅读次数:214
js获取url参数的两种方法
js获取参数,在以前我都是用正在去拆分,然后获取,这种方式感觉是最简单的方式1:function QueryString(item){ var sValue=location.search.match(new RegExp("[\?\&]"+item+"=([^\&]*)(\&?)","i")...
分类:Web程序   时间:2014-08-31 15:41:41    阅读次数:222
取文本中数字
如果前后字母个数不固定: B1=MID(A1,MATCH(0,0*MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1),),MATCH(0,0*MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))-MATCH(0,0*MID(A1,ROW(INDIREC...
分类:其他好文   时间:2014-08-31 10:30:01    阅读次数:172
TODO Resharper
首先我想跟大家分享一下我们团队的代码检查流程。 1. 项目经理随时会检查成员的代码,如果发现有不符合规范的代码,会在注释里面加todo。比如,假设leo的代码不符合规范,那么项目经理就会加注释: //todoleo: refactor below code to match the standard...
分类:其他好文   时间:2014-08-29 17:31:28    阅读次数:277
python chanllenge题解
网址:chanllenge修改url最后的html的前缀为答案,就可以过关。然后推荐一个在线代码运行的网站 ideone第一题:题目:要求取2的38次方。解:python支持**符号表示指数,也可以用match.pow()2 ** 38math.pow(2, 38)第二题:题目:字符变换,最简单的加...
分类:编程语言   时间:2014-08-29 15:59:38    阅读次数:220
IP138 IP地址查询 php实例
复制代码代码如下: $ip="www.jb51.net"; //$ip可以任意改成其他域名或者是ip地址  $source=file_get_contents('http://www.ip138.com/ips.asp?ip='.$ip.'&action=2');  //正则匹配  preg_match_all("/(.*)/isU",$source,$result);  p...
分类:Web程序   时间:2014-08-28 18:09:15    阅读次数:247
Java compiler level does not match the version of the installed Java project facet 的解决方案
今天将MyEclipse升级到 10 后,打开原来的工作空间,原来所有的项目都前面都显示了一个小叉叉,代码中却没有任何错误。于从 problems 视图中查看错误信息,错误信息的“Description”显示:Java compiler level does not match the versio...
分类:编程语言   时间:2014-08-28 17:54:45    阅读次数:228
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!