上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 58 下一页
摘要: 1). 匹配除换行符以外的任意字符 \w 匹配字母或数字或下划线或汉字 \s 匹配任意的空白符 \d 匹配任意的数字,例如:\d{2}表示前面的数字连续出现2次,即2个数字。 \b 匹配单词的开始或结束,也就是单词的分界处,它只匹配一个字符位置。 ^ 匹配字符串的开始 $ 匹配字符串的结束2)* 表匹配次数的符号。重复零次或更多次 它代表的不是字符,也不是位置,而是数量——它指定*前边的内容可以连续重复出现任 意次以使整个表达式得到匹配。+ 重复一次或更多次 ? 重复零次或一次 {n} 重复n次 {n,} 重复n次或更多次 {n,m} 重复n到m次3)[] 匹配方括号里面的字符。例:[0-9] 阅读全文
posted @ 2011-11-28 10:11 清山博客 阅读(189) 评论(0) 推荐(0)
摘要: 在涉及到xml与xslt编程的过程中,经常会碰到"分析 EntityName 时出错"的提示!其实你程序本身并没有太大的错误,你只是忽略了xml中特殊符号表示的方法,如果遇到此错误你就检查一下你用到下边的符号没有,互相转换一下就好了:特殊字符特殊含义实体编码>&gt;<&lt;"双引号&quot;'单引号&apos;&"&"字符&amp; 阅读全文
posted @ 2011-11-18 12:35 清山博客 阅读(283) 评论(0) 推荐(0)
摘要: Sql Server 中一个非常强大的日期格式化函数Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AMSelect CONVERT(varchar(100), GETDATE(), 1): 05/16/06Select CONVERT(varchar(100), GETDATE(), 2): 06.05.16Select CONVERT(varchar(100), GETDATE(), 3): 16/05/06Select CONVERT(varchar(100), GETDATE(), 4): 16.05.06Sele 阅读全文
posted @ 2011-11-09 16:40 清山博客 阅读(254) 评论(0) 推荐(0)
摘要: 利用SQLite数据库做了个笔记记录软件,加上搜索功能,方便自己记录东西所用。下载地址(请在安装了.net framework 3.0/3.5的机器上运行,win7默认已安装该运行时)参考资料: 1.KTDictSeg分词组件:http://www.cnblogs.com/eaglet/archive/2008/11/17/1335098.html 2.ICSharpCode.TextEditor 高亮文本编辑器:http://www.icsharpcode.net/ 3.SQlite 数据库:http://www.sqlite.org/download.html 阅读全文
posted @ 2011-10-30 12:52 清山博客 阅读(1505) 评论(0) 推荐(0)
摘要: 下载地址:http://download.csdn.net/detail/a497785609/3691712 阅读全文
posted @ 2011-10-17 20:13 清山博客 阅读(172) 评论(0) 推荐(0)
摘要: 方法1: using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Threading; using System.Reflection; static class Program { private static Mutex singleton; /// <summary> /// The main entry point for the application. ... 阅读全文
posted @ 2011-10-12 20:35 清山博客 阅读(311) 评论(0) 推荐(0)
摘要: 将Quartz.NET组建引入到WinFrom中时,遇到个问题,关闭程序后,进程任未结束。解决办法:在窗体关闭时,把调度器关闭就不会存在进程了。private void FormMain_FormClosing ( object sender , FormClosingEventArgs e )if (Scheduler.GetIntance()!= null ){ Scheduler.GetIntance().Shutdown()} 阅读全文
posted @ 2011-10-12 20:34 清山博客 阅读(527) 评论(0) 推荐(2)
摘要: <?xml version="1.0" encoding="utf-8"?><xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe"> <xsl:output method="html" /> <xsl:variable 阅读全文
posted @ 2011-10-07 16:05 清山博客 阅读(260) 评论(0) 推荐(0)
摘要: 经常在商城或汽车系统里可以看到很多商品对比或车型对比的页面,最近做项目也遇到了这样的需求,想到了一种实现思路,如果大家有什么更好的办法,不惜赐教。1.实现基础:扩展prototype,实现通过索引来访问Josn对象属性字段。<script type="text/javascript"> Object.prototype.k = function (n, t) { var arr = []; for (pro in this) arr.push(pro); return t ? arr[n] : thi... 阅读全文
posted @ 2011-09-15 21:39 清山博客 阅读(3755) 评论(0) 推荐(0)
摘要: 如下代码定义了一个循环模板的例子:<xsl:template name="for-loop"><xsl:param name="i"/><xsl:param name="count"/><xsl:if test="$i &lt;= $count"> <xsl:value-of select="$i" disable-output-escaping = "yes" /></xsl:if><xs 阅读全文
posted @ 2011-09-09 12:14 清山博客 阅读(3079) 评论(0) 推荐(0)
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 58 下一页