摘要: 正则表达式(regular expression,即Regex)是说明大块文本的一种模式(pattern)。正则表达式引擎把这种模式运用到源文件文本中去。最初的源文本是不相关的——它可以是文本文件、网页的HTML源代码、甚至是数据库表格中的一个栏。 只需要使用几种记号(token),你就可以描述出复杂的模式,而且你还可以对这些模式作些很酷的事,如算术运算(也就是说,计算该模式出现的次数)。 正则表... 阅读全文
posted @ 2004-02-16 15:32 dudu 阅读(930) 评论(3) 推荐(0) 编辑
摘要: 首先,非常感谢秋雨痕提供的CJKAnalyzer。现在搜索中文词时,匹配更准确。以前搜索中文词时,只会匹配其中一个字。原来用的是StandardAnalyzer,对中文处理有点问题,秋雨痕将CheDong的CJK分词转换成C#代码,然后提供给我,解决了这个问题。 阅读全文
posted @ 2004-02-16 09:59 dudu 阅读(1062) 评论(2) 推荐(0) 编辑
摘要: When it comes to understanding a how a query is resolved there is nothing better than using the ‘Show Execution Plan’ feature of SQL Query analyzer. I am certain you are aware that using OR operators ... 阅读全文
posted @ 2004-02-16 08:42 dudu 阅读(900) 评论(0) 推荐(0) 编辑