码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果)
[LeetCode] Regular Expression Matching
Regular Expression Matching   Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the preceding element. The match...
分类:其他好文   时间:2015-06-24 21:08:10    阅读次数:133
c#, extract number from string
usingSystem.Text.RegularExpressions;stringnumberStr=Regex.Match(str,"[0-9]").Value;参考:http://answers.unity3d.com/questions/19053/extract-number-from-s...
分类:Windows程序   时间:2015-06-24 20:58:26    阅读次数:192
python中for和if else的使用
In [8]: a = set('abcd')In [9]: b = set('ef')In [10]: def match(x,y): ....: for i in x: ....: for j in y: ....: if i==j: ...
分类:编程语言   时间:2015-06-24 18:07:31    阅读次数:160
zf框架 文件安全性检查
protected static function _securityCheck($filename) { /** * Security check */ if (preg_match('/[^a-z0-9\\/\\\\_.:-]/i...
分类:其他好文   时间:2015-06-24 10:47:54    阅读次数:116
第十四章,通过Intent打开其他软件(Android)
activity_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou...
分类:移动开发   时间:2015-06-23 21:43:43    阅读次数:178
Android存储数据到本地文件
xml文件<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:padding="5dp" &g..
分类:移动开发   时间:2015-06-23 18:12:19    阅读次数:144
HDU 3277 Marriage Match III(并查集+二分答案+最大流SAP)拆点,经典
Marriage Match III Time Limit: 10000/4000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1581    Accepted Submission(s): 464 Problem Description Presumably,...
分类:其他好文   时间:2015-06-23 15:35:20    阅读次数:116
#10 Regular Expression Match
题目链接:https://leetcode.com/problems/regular-expression-matching/ Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more...
分类:其他好文   时间:2015-06-21 18:38:10    阅读次数:215
注释转换 ——C注释转换为标准C++注释
http://blog.csdn.net/fujinlong520/article/details/46573445注释转换 ——C++注释转换为标准C语言注释 直接上代码: #include #include #include typedef enum STATE { SUCCESS, // 转换成功 FILE_ERROE, // 文件错误 NO_MATCH, // 不匹...
分类:编程语言   时间:2015-06-21 15:52:31    阅读次数:128
判断是否微信 IPhone 打开
/** * 判断是否微信 * @returns {boolean} */ function isWeiXin(){ var ua =window.navigator.userAgent.toLowerCase(); var s = ua.match(/MicroMessenger\/([\d.]+)?/i); if(s == null){ return fal...
分类:微信   时间:2015-06-20 19:40:05    阅读次数:297
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!