摘要:
反向引用,指把匹配出来的组引用到表达式本身其它地方,比如,在匹配HTML的标记时,我们匹配出一个<a>,我们要把匹配出来的a引用出来,用来找到</a>,这个时候就要用到反向引用。 语法 a、反向引用编号的组,语法为\number b、反向引用命名的组,语法为\k<name> 举例 a、匹配成对的HTML标签 @"<(?<tag>[^\s>]+)[^>]*... 阅读全文
posted @ 2008-11-16 21:29
.net's
阅读(471)
评论(0)
推荐(0)
摘要:
前言 Regular Expressions(正则表达式,以下用RE称呼)对小弟来说一直都是神密的地带,看到一些网络上的大大,简单用RE就决解了某些文字的问题,小弟便兴起了学一学RE的想法,但小弟天生就比较懒一些,总希望看有没有些快速学习的方式,于是小弟又请出Google大神,藉由祂的神力,小弟在网络上找到了Jim Hollenhorst先生的文章,经过了阅读,小弟觉得真是不错,所以就做个小心... 阅读全文
posted @ 2008-11-16 21:17
.net's
阅读(464)
评论(0)
推荐(0)
摘要:
Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Bad Words Example Enter some text below including "bad... 阅读全文
posted @ 2008-11-16 17:46
.net's
阅读(920)
评论(0)
推荐(0)
摘要:
Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Trim Example Enter some text containing leading and ... 阅读全文
posted @ 2008-11-16 16:50
.net's
阅读(676)
评论(0)
推荐(0)
摘要:
Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/* * 将回车换行分开比较好 * update date:2009-01-01 * */ /// /// 回车 /// ... 阅读全文
posted @ 2008-11-16 14:57
.net's
阅读(876)
评论(3)
推荐(0)