<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
  <channel>
    <title><![CDATA[拍拍尘土]]></title> 
    <link>http://blog.xg98.com/</link> 
    <description><![CDATA[五月枇杷黄，太湖银鱼肥]]></description> 
    <language>zh-cn</language> 
    <copyright><![CDATA[Copyright 2026, 拍拍尘土]]></copyright> 
    <webMaster><![CDATA[cxosoft@gmail.com (Admin)]]></webMaster> 
    <generator>LBS v2.0.313</generator> 
    <pubDate>Tue, 05 May 2026 08:35:16 +0800</pubDate> 
    <ttl>60</ttl>
  
    <item>
      <title><![CDATA[Dreamweaver使用正则表达式批量替换网页内容]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=1739]]></link> 
      <category><![CDATA[正则表达式]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Thu, 03 Nov 2011 20:48:42 +0800</pubDate> 
      <description><![CDATA[<p><span style="color: rgb(255, 0, 0);"><strong>p.s.用dreamweaver经常需要替换网页，用正则可以方便的解决，下面这个例子，清理掉图片，图片代码中间有换行。</strong></span><br/><br/>&lt;A href=&quot;http://open.baidu.com/&quot;&gt;&lt;IMG alt=搜索开放平台 <br/>src=&quot;images/ico_open.gif&quot;&gt;搜索开放平台&lt;/A&gt;<br/>用正则 &lt;IMG.*\n.*&quot;&gt; 即可<br/><br/>参考：http://blog.licess.org/dreamweaver-regular-expression/<br/>今天看到播布客上几个视频比较好，于是准备下载~但是太懒，不想一个一个的下，就运用一下Dreamweaver正则表达式替换。 <br/>播布客视频的地址有一定的规律，如 http://www.boobooke.com/v/bbk1234 &nbsp;这个是在线观看的地址，下载地址是 ]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=1739]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[正则表达式中特殊字符的转义]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=909]]></link> 
      <category><![CDATA[正则表达式]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Tue, 29 May 2007 11:25:38 +0800</pubDate> 
      <description><![CDATA[点的转义：.  ==&gt; \\u002E<br />美元符号的转义：$  ==&gt; \\u0024<br />乘方符号的转义：^  ==&gt; \\u005E<br />左大括号的转义：{  ==&gt; \\u007B<br />左方括号的转义：[  ==&gt; \\u005B<br />左圆括号的转义：(  ==&gt; \\u0028<br />竖线的转义：| ==&gt; \\u007C<br />右圆括号的转义：) ==&gt; \\u0029<br />星号的转义：*  ==&gt; \\u002A<br />加号的转义：+  ==&gt; \\u002B<br />问号的转义：?  ==&gt; \\u003F<br />反斜杠的转义：\ ==&gt; \\u005C]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=909]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[JScript中正则表达式用法详解]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=598]]></link> 
      <category><![CDATA[正则表达式]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Sun, 14 May 2006 19:17:24 +0800</pubDate> 
      <description><![CDATA[<a href="http://bg5sbk.cnblogs.com/archive/2006/05/06/JScript_RegExp.html" title="http://bg5sbk.cnblogs.com/archive/2006/05/06/JScript_RegExp.html" target="_blank">http://bg5sbk.cnblogs.com/archive/2006/05/06/JScript_RegExp.html</a><br /><br />呵呵，先罗嗦几句，去年用C#做了一个语法高亮的小东西，根据配制文件中的信息把所给代码格式化成HTML，使它能在网页上显示出和编辑器里一样的语法元素高亮的效果以及支持代码折叠。没错，就是和博客园上看到的类似啦。因为我当时使用的是MSN Space，它没有提供这项功能，只好自己写一个咯。<br /> &nbsp; &nbsp; &nbsp; &nbsp; 我使用的是C#进行编写，起初使用的是超级繁琐的for，while，switch，if等基本语句来判断关键字等等，大家莫笑话，本人愚笨当时还不知道正则表达式是何物，所以只能用这种土办法了，当然土办法还是有效果的，只是一个函数里冗长的代码，以后要维护起来恐怕是非常难的，心想别的软件不可能是这么写的吧，于是乎到google上搜索了一阵，找到了些语法高亮的代码和开源项目，开起来一]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=598]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[关于正则的贪婪或非贪婪模式,又忘了!!]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=549]]></link> 
      <category><![CDATA[正则表达式]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 10 May 2006 23:24:59 +0800</pubDate> 
      <description><![CDATA[<img src="http://blog.xg98.com/styles/default/images/smilies/icon_mrgreen.gif" border="0" alt="[mrgreen]" /><br /><br /><br />当该字符紧跟在任何一个其他限制符 (*, +, ?, {n}, {n,}, {n,m}) 后面时，匹配模式是非贪婪的。非贪婪模式尽可能少的匹配所搜索的字符串，而默认的贪婪模式则尽可能多的匹配所搜索的字符串。例如，对于字符串 &quot;oooo&quot;，&#39;o+?&#39; 将匹配单个 &quot;o&quot;，而 &#39;o+&#39; 将匹配所有 &#39;o&#39;。<br /><br /><br /><span style="color:Red"><b>论正则表达式的“贪婪”性</b></span><br />作者：Unlinux<br />来自: <a href="http://www.Unlinux.com" title="http://www.Unlinux.com" target="_blank">http://www.Unlinux.com</a><br />正则表达式是具有贪婪性的，我们从下面这例谈起：<br />已知str=&quot;uid=100(guest) gid=100(others) groups=10(users),11(floppy)&quot;<br />现在想要得到这个字符串中的第一个括号内的值，即guest该怎么办？假设$str的括号外的内容是不固定的，不能]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=549]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[C#正则表达式]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=542]]></link> 
      <category><![CDATA[正则表达式]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 10 May 2006 11:14:06 +0800</pubDate> 
      <description><![CDATA[到目前为止，许多的编程语言和工具都包含对正则表达式的支持，当然.NET也不例外，.NET基础类库中包含有一个名称空间和一系列可以充分发挥规则表达式威力的类。  <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;正则表达式的知识可能是不少编程人员最烦恼的事儿了。如果你还没有规则表达式方面的知识的话，建议从正则表达式的基础知识入手。前参见 正则表达式基础知识。  <br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;下面就来研究C#中的正则表达式，C#中的正则表达式包含在.NET基础雷库的一个名称空间下，这个名称空间就是System.Text.RegularExpressions。该名称空间包括8个类，1个枚举，1个委托。他们分别是： <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;           Capture: 包含一次匹配的结果；  <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;           CaptureCollection: Capture的序列；  <br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=542]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[半小时教你学会正则表达式[推荐]]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=541]]></link> 
      <category><![CDATA[正则表达式]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 10 May 2006 09:55:01 +0800</pubDate> 
      <description><![CDATA[<span style="color:Green">tianyang: 正则这个东西是看了忘记,再看再忘记,所以一定要有一个迅速可以温习巩固的文章,这篇不错.</span><br /><br />想必很多人都对正则表达式都头疼.今天,我以我的认识,加上网上一些文章,希望用常人都可以理解的表达方式.来和大家分享学习经验. <br /><br />　　<b>开篇,还是得说说 ^ 和 $ 他们是分别用来匹配字符串的开始和结束，以下分别举例说明 </b><br /><br />　　&quot;^The&quot;: 开头一定要有&quot;The&quot;字符串; <br />　　&quot;of despair$&quot;: 结尾一定要有&quot;of despair&quot; 的字符串; <br /><br />　　那么,<br />　　&quot;^abc$&quot;: 就是要求以abc开头和以abc结尾的字符串，实际上是只有abc匹配 <br />　　&quot;notice&quot;: 匹配包含notice的字符串 <br /><br />　　你可以看见如果你没有用我们提到的两个字符（最后一个例子），就是说 模式（正则表达式） 可以出现在被检验字符串的任何地方，你没有把他锁定到两边<br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=541]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[解读C＃中的规则表达式 [推荐]]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=530]]></link> 
      <category><![CDATA[正则表达式]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Sun, 30 Apr 2006 02:31:49 +0800</pubDate> 
      <description><![CDATA[（作者：刘彦青编译　2001年02月28日 13:51）<br /><br />　　多少年来，许多的编程语言和工具都包含对规则表达式的支持，.NET基础类库中包含有一个名字空间和一系列可以充分发挥规则表达式威力的类，而且它们也都与未来的Perl 5中的规则表达式兼容。 <br /><br />　　此外，regexp类还能够完成一些其他的功能，例如从右至左的结合模式和表达式的编辑等。 <br /><br />　　在这篇文章中，我将简要地介绍System.Text.RegularExpression中的类和方法、一些字符串匹配和替换的例子以及组结构的详细情况，最后，还会介绍一些你可能会用到的常见的表达式。 <br /><br />应该掌握的基础知识 <br />　　规则表达式的知识可能是不少编程人员“常学常忘”的知识之一。在这篇文章中，我们将假定你已经掌握了规则表达式的用法，尤其是Perl 5中表达式的用法。.NET的regexp类是Perl 5中表达式的一个超集]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=530]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[17种正则表达式]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=33]]></link> 
      <category><![CDATA[正则表达式]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Thu, 16 Sep 2004 05:40:19 +0800</pubDate> 
      <description><![CDATA[&quot;^\\d+$&quot;　　//非负整数（正整数 + 0） <br />&quot;^[0-9]*[1-9][0-9]*$&quot;　　//正整数 <br />&quot;^((-\\d+)|(0+))$&quot;　　//非正整数（负整数 + 0） <br />&quot;^-[0-9]*[1-9][0-9]*$&quot;　　//负整数 <br />&quot;^-?\\d+$&quot;　　　　//整数 <br />&quot;^\\d+(\\.\\d+)?$&quot;　　//非负浮点数（正浮点数 + 0） <br />&quot;^(([0-9]+\\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\\.[0-9]+)|([0-9]*[1-9][0-9]*))$&quot;　　//正浮点数 <br />&quot;^((-\\d+(\\.\\d+)?)|(0+(\\.0+)?))$&quot;　　//非正浮点数（负浮点数 + 0） <br />&quot;^(-(([0-9]+\\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\\.[0-]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=33]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[正则表达式语法]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=16]]></link> 
      <category><![CDATA[正则表达式]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Thu, 16 Sep 2004 05:01:42 +0800</pubDate> 
      <description><![CDATA[一个正则表达式就是由普通字符（例如字符 a 到 z）以及特殊字符（称为元字符）组成的文字模式。该模式描述在查找文字主体时待匹配的一个或多个字符串。正则表达式作为一个模板，将某个字符模式与所搜索的字符串进行匹配。<br /><br />这里有一些可能会遇到的正则表达式示例：<br /><br />JScript VBScript 匹配 <br />/^\[ \t]*$/ &quot;^\[ \t]*$&quot; 匹配一个空白行。 <br />/\d{2}-\d{5}/ &quot;\d{2}-\d{5}&quot; 验证一个ID 号码是否由一个2位数字，一个连字符以及一个5位数字组成。 <br />/&lt;(.*)&gt;.*&lt;\/\1&gt;/ &quot;&lt;(.*)&gt;.*&lt;\/\1&gt;&quot; 匹配一个 HTML 标记。 <br /><br />下表是元字符及其在正则表达式上下文中的行为的一个完整列表：<br /><br />字符 描述 <br />\ 将下一个字符标记为一个特殊字符、或一个原义字符、或一个 向后引用、或一个八进制转义符。例如，&#39;n&#39; ]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=16]]></wfw:commentRss>
    </item>
      
  </channel>
</rss>
