<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_circlesport</title><subtitle type="text"/><id>http://feed.cnblogs.com/blog/u/24386/rss</id><updated>2007-08-07T03:30:53Z</updated><author><name>无极.net</name><uri>http://www.cnblogs.com/circlesport/</uri></author><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/circlesport/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/24386/rss"/><entry><id>http://www.cnblogs.com/circlesport/archive/2007/07/23/828031.html</id><title type="text">.NET正则表达式使用高级技巧之工作特点</title><summary type="text">语法：??,*?,+?,{n}?,{n,m}?涵义：简单说，后面的这个?(lazy符)告诉正则引擎，它前面的表达式匹配到最短的匹配项就不用匹配下去了，如??，?本身匹配0-1个匹配项，那么??就取最短的，匹配0个项就不匹配下去了，同理，*?匹配0个，+?匹配1个，{n}?匹配n个，{n,m}?匹配n个。当用@”\w*?”匹配”abcd”时，会有五...</summary><published>2007-07-23T03:22:00Z</published><updated>2007-07-23T03:22:00Z</updated><author><name>无极.net</name><uri>http://www.cnblogs.com/circlesport/</uri></author><link rel="alternate" href="http://www.cnblogs.com/circlesport/archive/2007/07/23/828031.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/circlesport/archive/2007/07/23/828031.html"/><content type="text">语法：??,*?,+?,{n}?,{n,m}?涵义：简单说，后面的这个?(lazy符)告诉正则引擎，它前面的表达式匹配到最短的匹配项就不用匹配下去了，如??，?本身匹配0-1个匹配项，那么??就取最短的，匹配0个项就不匹配下去了，同理，*?匹配0个，+?匹配1个，{n}?匹配n个，{n,m}?匹配n个。当用@”\w*?”匹配”abcd”时，会有五...</content></entry><entry><id>http://www.cnblogs.com/circlesport/archive/2007/07/23/828015.html</id><title type="text">.NET正则表达式使用高级技巧之反向引用</title><summary type="text">反向引用，指把匹配出来的组引用到表达式本身其它地方，比如，在匹配HTML的标记时，我们匹配出一个＜a＞,我们要把匹配出来的a引用出来，用来找到＜/a＞，这个时候就要用到反向引用。 语法 a、反向引用编号的组，语法为\number b、反向引用命名的组，语法为\k＜name＞ 举例 a、匹配成对的HTML标签 @"＜(?＜tag＞[^\s＞]+)[^＞]*＞.*＜/\k＜tag＞...</summary><published>2007-07-23T03:15:00Z</published><updated>2007-07-23T03:15:00Z</updated><author><name>无极.net</name><uri>http://www.cnblogs.com/circlesport/</uri></author><link rel="alternate" href="http://www.cnblogs.com/circlesport/archive/2007/07/23/828015.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/circlesport/archive/2007/07/23/828015.html"/><content type="text">反向引用，指把匹配出来的组引用到表达式本身其它地方，比如，在匹配HTML的标记时，我们匹配出一个＜a＞,我们要把匹配出来的a引用出来，用来找到＜/a＞，这个时候就要用到反向引用。 语法 a、反向引用编号的组，语法为\number b、反向引用命名的组，语法为\k＜name＞ 举例 a、匹配成对的HTML标签 @"＜(?＜tag＞[^\s＞]+)[^＞]*＞.*＜/\k＜tag＞...</content></entry><entry><id>http://www.cnblogs.com/circlesport/archive/2007/07/23/828001.html</id><title type="text">.NET正则表达式使用高级技巧之组的概念</title><summary type="text">正则表达式中的组是很重要的一个概念，它是我们通向高级正则应用的的桥梁。组的概念 一个正则表达式匹配结果可以分成多个部分，这就是组(Group)的目的。能够灵活的使用组后，你会发现Regex真是很方便，也很强大。 先举个例子 public static void Main() { string s = "2005-2-21"; Regex reg = new Regex(@"(?&amp;l...</summary><published>2007-07-23T03:10:00Z</published><updated>2007-07-23T03:10:00Z</updated><author><name>无极.net</name><uri>http://www.cnblogs.com/circlesport/</uri></author><link rel="alternate" href="http://www.cnblogs.com/circlesport/archive/2007/07/23/828001.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/circlesport/archive/2007/07/23/828001.html"/><content type="text">正则表达式中的组是很重要的一个概念，它是我们通向高级正则应用的的桥梁。组的概念 一个正则表达式匹配结果可以分成多个部分，这就是组(Group)的目的。能够灵活的使用组后，你会发现Regex真是很方便，也很强大。 先举个例子 public static void Main() { string s = "2005-2-21"; Regex reg = new Regex(@"(?&amp;l...</content></entry><entry><id>http://www.cnblogs.com/circlesport/archive/2007/07/23/827987.html</id><title type="text">.NET正则表达式使用高级技巧之替换类</title><summary type="text">因为.net的基本正则语法和Perl5基本相同，所以基本语法你可以去下载一下M$的JS帮助文档，上面有详细的说明\d表示什么，{,5}表示什么，\[表示什么……，这里我只想提醒大家一点，为了避免和反向引用相冲突，在你用\nn表示八进制的ASCII码时，请在\后加0，就是说，\40在表示ASCII码时，请这样写\040。 替换 Regex类有一个静态的Replace方...</summary><published>2007-07-23T03:04:00Z</published><updated>2007-07-23T03:04:00Z</updated><author><name>无极.net</name><uri>http://www.cnblogs.com/circlesport/</uri></author><link rel="alternate" href="http://www.cnblogs.com/circlesport/archive/2007/07/23/827987.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/circlesport/archive/2007/07/23/827987.html"/><content type="text">因为.net的基本正则语法和Perl5基本相同，所以基本语法你可以去下载一下M$的JS帮助文档，上面有详细的说明\d表示什么，{,5}表示什么，\[表示什么……，这里我只想提醒大家一点，为了避免和反向引用相冲突，在你用\nn表示八进制的ASCII码时，请在\后加0，就是说，\40在表示ASCII码时，请这样写\040。 替换 Regex类有一个静态的Replace方...</content></entry><entry><id>http://www.cnblogs.com/circlesport/archive/2007/07/23/827970.html</id><title type="text">C#中利用正则表达式实现字符串搜索 </title><summary type="text">摘要：本文给出了在C#下利用正则表达式实现字符串搜索功能的方法，通过对.NET框架下的正则表达式的研究及实例分析，总结了正则表达式的元字符、规则、选项等。关键字：正则表达式、元字符、字符串、匹配1、正则表达式简介正则表达式提供了功能强大、灵活而又高效的方法来处理文本。正则表达式的全面模式匹配表示法可以快速地分析大量的文本以找到特定的字符模式；提取、编辑、替换或删除文本子字符串；或将提取...</summary><published>2007-07-23T02:53:00Z</published><updated>2007-07-23T02:53:00Z</updated><author><name>无极.net</name><uri>http://www.cnblogs.com/circlesport/</uri></author><link rel="alternate" href="http://www.cnblogs.com/circlesport/archive/2007/07/23/827970.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/circlesport/archive/2007/07/23/827970.html"/><content type="text">摘要：本文给出了在C#下利用正则表达式实现字符串搜索功能的方法，通过对.NET框架下的正则表达式的研究及实例分析，总结了正则表达式的元字符、规则、选项等。关键字：正则表达式、元字符、字符串、匹配1、正则表达式简介正则表达式提供了功能强大、灵活而又高效的方法来处理文本。正则表达式的全面模式匹配表示法可以快速地分析大量的文本以找到特定的字符模式；提取、编辑、替换或删除文本子字符串；或将提取...</content></entry><entry><id>http://www.cnblogs.com/circlesport/archive/2007/07/02/803238.html</id><title type="text">字符串长度，同时考虑二个英文=一个中文</title><summary type="text">///&lt;summary&gt; ///截获定长的字符串 ///&lt;/summary&gt; ///&lt;paramname="source"&gt;源字符串&lt;/param&gt; ///&lt;paramname="length"&gt;需要截获的长度&lt;/param&gt; ///&lt;returns&gt;截获后的字符串&lt;/returns&gt; staticpu...</summary><published>2007-07-02T07:33:00Z</published><updated>2007-07-02T07:33:00Z</updated><author><name>无极.net</name><uri>http://www.cnblogs.com/circlesport/</uri></author><link rel="alternate" href="http://www.cnblogs.com/circlesport/archive/2007/07/02/803238.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/circlesport/archive/2007/07/02/803238.html"/><content type="text">///&lt;summary&gt; ///截获定长的字符串 ///&lt;/summary&gt; ///&lt;paramname="source"&gt;源字符串&lt;/param&gt; ///&lt;paramname="length"&gt;需要截获的长度&lt;/param&gt; ///&lt;returns&gt;截获后的字符串&lt;/returns&gt; staticpu...</content></entry><entry><id>http://www.cnblogs.com/circlesport/archive/2007/04/25/727435.html</id><title type="text">c# 添加图片水印，可以指定水印位置+生成缩略图 </title><summary type="text">生成缩略图Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--&gt;12/**////&lt;summary&gt;3///生成缩略图4///&lt;/summary&gt;5///&lt;paramname="oldpath"&gt;原图片地址&lt;/par...</summary><published>2007-04-25T14:37:00Z</published><updated>2007-04-25T14:37:00Z</updated><author><name>无极.net</name><uri>http://www.cnblogs.com/circlesport/</uri></author><link rel="alternate" href="http://www.cnblogs.com/circlesport/archive/2007/04/25/727435.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/circlesport/archive/2007/04/25/727435.html"/><content type="text">生成缩略图Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--&gt;12/**////&lt;summary&gt;3///生成缩略图4///&lt;/summary&gt;5///&lt;paramname="oldpath"&gt;原图片地址&lt;/par...</content></entry><entry><id>http://www.cnblogs.com/circlesport/archive/2007/03/30/694222.html</id><title type="text">FLASH图片新闻代码</title><summary type="text">是用的FLASH调用数据库的数据。代码如下： &lt;script type="text/javascript"&gt; &lt;!-- imgUrl1 = "http://www.moobol.com/livePic/manage/huxw/070225/083809_1.jpg"; imgText1 = ""; imgLink1 = escape("/molive/liveAction.do?...</summary><published>2007-03-30T08:50:00Z</published><updated>2007-03-30T08:50:00Z</updated><author><name>无极.net</name><uri>http://www.cnblogs.com/circlesport/</uri></author><link rel="alternate" href="http://www.cnblogs.com/circlesport/archive/2007/03/30/694222.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/circlesport/archive/2007/03/30/694222.html"/><content type="text">是用的FLASH调用数据库的数据。代码如下： &lt;script type="text/javascript"&gt; &lt;!-- imgUrl1 = "http://www.moobol.com/livePic/manage/huxw/070225/083809_1.jpg"; imgText1 = ""; imgLink1 = escape("/molive/liveAction.do?...</content></entry><entry><id>http://www.cnblogs.com/circlesport/archive/2007/03/20/681023.html</id><title type="text">正则表达式30分钟入门教程 v2.1</title><summary type="text">如何使用本教程别被下面那些复杂的表达式吓倒，只要跟着我一步一步来，你会发现正则表达式其实并没有你想像中的那么困难。当然，如果你看完了这篇教程之后，发现自己明白了很多，却又几乎什么都记不得，那也是很正常的——我认为，没接触过正则表达式的人在看完这篇教程后，能把提到过的语法记住80%以上的可能性为零。这里只是让你明白基本的原理，以后你还需要多练习，多查资料，才能熟练掌握正则表达式。除了作为入门教程之外...</summary><published>2007-03-20T05:08:00Z</published><updated>2007-03-20T05:08:00Z</updated><author><name>无极.net</name><uri>http://www.cnblogs.com/circlesport/</uri></author><link rel="alternate" href="http://www.cnblogs.com/circlesport/archive/2007/03/20/681023.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/circlesport/archive/2007/03/20/681023.html"/><content type="text">如何使用本教程别被下面那些复杂的表达式吓倒，只要跟着我一步一步来，你会发现正则表达式其实并没有你想像中的那么困难。当然，如果你看完了这篇教程之后，发现自己明白了很多，却又几乎什么都记不得，那也是很正常的——我认为，没接触过正则表达式的人在看完这篇教程后，能把提到过的语法记住80%以上的可能性为零。这里只是让你明白基本的原理，以后你还需要多练习，多查资料，才能熟练掌握正则表达式。除了作为入门教程之外...</content></entry><entry><id>http://www.cnblogs.com/circlesport/archive/2007/03/15/676261.html</id><title type="text">两个固定宽度的DIV，不换行</title><summary type="text">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;head&gt;&lt;meta htt...</summary><published>2007-03-15T09:45:00Z</published><updated>2007-03-15T09:45:00Z</updated><author><name>无极.net</name><uri>http://www.cnblogs.com/circlesport/</uri></author><link rel="alternate" href="http://www.cnblogs.com/circlesport/archive/2007/03/15/676261.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/circlesport/archive/2007/03/15/676261.html"/><content type="text">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;head&gt;&lt;meta htt...</content></entry></feed>
