在比较操作(==,!=,>,=,<=),matches,算数操作(+,-,*,/ ,包含%,?,CASE)中,如果有一个操作数为空,那么结果为空。
COUNT_STAR ,不过滤null数据
CAST 操作:将一个null数据从一个数据类型转换到另一个数据类型,结果为空
AVG,MIN,MAX,SUM,COUNT :这几个操作将忽略空值
CONCAT :任意...
分类:
其他好文 时间:
2014-06-27 23:24:12
阅读次数:
304
题目
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching sh...
分类:
其他好文 时间:
2014-06-25 19:56:35
阅读次数:
275
题目
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the ent...
分类:
其他好文 时间:
2014-06-24 18:43:56
阅读次数:
224
模式匹配的实现,'?'代表单一字符,'*'代表任意多的字符,写代码实现两个字符串是否匹配。
Implement wildcard pattern matching with support for '?' and '*'.、
'?' Matches any single character.
'*' Matches any sequence of characters (inclu...
分类:
其他好文 时间:
2014-06-22 16:40:44
阅读次数:
225
$name = "abc_2014-06-19.txt" $name -cmatch '^abc_(?\d{4})-(?\d{2})-(?\d{2})\.txt' $matches$matches.year $matches.day$id="/cs/blogs/tips/arch...
分类:
其他好文 时间:
2014-06-20 17:34:06
阅读次数:
204
字符串匹配
精确:
indexOf(String str); -- strstr(), O(mn)。
lastIndexOf(String str); -- continue 的别样用法。
matches(String regex); -- Regex.compile()/match()。
模糊:
java package?
Spell Checker -- 两个字符串的相似程度...
分类:
编程语言 时间:
2014-06-20 11:00:18
阅读次数:
287
关于 trim 其实没啥好说的,无非就是去除首位空格,对于现代浏览器来说只是简单的正则
/^\s+|\s+$/ 就可以搞定了。而且支持中文空格 等等。什么 \s 支持 中文空格?是的。打开 RegExp#character-classes
往下拉一点,找到 \s 这个解释。原文:Matches a....
分类:
Web程序 时间:
2014-06-10 12:19:45
阅读次数:
303
1. matches() 匹配全部Pattern p =
Pattern.compile("reg");Matcher m =
p.matcher("String");System.out.println(m.matches());2:(matches
和find不要一起用,用reset()吐出来)...
分类:
编程语言 时间:
2014-06-02 10:19:32
阅读次数:
390
可视化语法 Visual Format SyntaxThe following are
examples of constraints you can specify using the visual format. Note how the
text visually matches the im...
分类:
移动开发 时间:
2014-06-02 05:37:46
阅读次数:
351
【题目】
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching should cover the entire input string (not partial).
The functi...
分类:
其他好文 时间:
2014-05-23 00:17:12
阅读次数:
364