Wildcard MatchingImplement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of charact...
分类:
其他好文 时间:
2014-11-23 10:27:55
阅读次数:
174
IOS正则表达式的用法
//邮箱
+ (BOOL) validateEmail:(NSString *)email
{
NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";
NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", emailRegex];
return [emailTes...
分类:
移动开发 时间:
2014-11-21 23:18:58
阅读次数:
607
修改sphinx最大输出记录数归纳如下:Sphinx的查询默认最大记录数是:1000,而我们想更改这个数值。就需要更改三个地方。1是更改sphinx.conf配置文件的:max_matches = 10000 #后面数字就是你想查询的最大记录数。建议在1000~10000之内。2是在api调用时.....
分类:
其他好文 时间:
2014-11-21 18:36:55
阅读次数:
179
style文件中的Theme.AppCompat.Light报错,Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light',最后找到原因,是因为And...
分类:
移动开发 时间:
2014-11-21 18:01:23
阅读次数:
129
简单版本:Regex reg = new Regex(@"(?i)\bfrom\b(?![^\[\]]*\])\s+(\[[^\[\]]+\]|\S+)");MatchCollection mc = reg.Matches(yourStr);foreach (Match m in mc){ ...
分类:
其他好文 时间:
2014-11-21 14:10:55
阅读次数:
119
使用adt开发新建一个Android app,选择支持的SDK版本如果小于11(Android3.0)就会报如下错误。
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
官网给出的答案是:
https://develop...
分类:
移动开发 时间:
2014-11-17 17:55:50
阅读次数:
195
提供一个厂商独立的通用接口命令行参数,支持分类: 1. 基本参数和值:get_args,get_args_matches 2. 工具信息:get_tool_name(),get_tool_version() 3. 支持从命令行设置各种UVM变量如冗长和配置设置积分和字符串类型: +uvm_set_c...
分类:
其他好文 时间:
2014-11-16 21:34:09
阅读次数:
2977
Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequence of characters (including the e...
分类:
其他好文 时间:
2014-11-16 11:57:11
阅读次数:
145
'?' Matches any single character.'*' Matches any sequence of characters (including the empty sequence).The matching should cover the entire input stri...
分类:
其他好文 时间:
2014-11-15 06:35:33
阅读次数:
152
$a = "a liu eea bbc n i"用split方法[regex]::split($a,"\b\s+\b")用替换方法替换掉空格[regex]::replace($a,"\b\s+\b"," ").split(" ")用非空表达式取出符合要求的值[regex]::matches($a,"...
分类:
其他好文 时间:
2014-11-07 16:56:32
阅读次数:
190