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
usingSystem.Text.RegularExpressions;stringnumberStr=Regex.Match(str,"[0-9]").Value;参考:http://answers.unity3d.com/questions/19053/extract-number-from-s...
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
protected static function _securityCheck($filename) { /** * Security check */ if (preg_match('/[^a-z0-9\\/\\\\_.:-]/i...
分类:
其他好文 时间:
2015-06-24 10:47:54
阅读次数:
116
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
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
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
题目链接: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
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
/**
* 判断是否微信
* @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