<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>phphot - </title><link>category/349317.aspx</link><description /><dc:language>zh-CN</dc:language><lastUpdateTime>Mon, 26 May 2008 20:23:49 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>phphot</dc:creator><title>正则表达式学习笔记</title><link>http://blog.csdn.net/phphot/archive/2008/05/26/2483845.aspx</link><pubDate>Mon, 26 May 2008 20:24:00 GMT</pubDate><guid>http://blog.csdn.net/phphot/archive/2008/05/26/2483845.aspx</guid><wfw:comment>comments/2483845.aspx</wfw:comment><comments>http://blog.csdn.net/phphot/archive/2008/05/26/2483845.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2483845.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2483845</trackback:ping><description>正则表达式(regular _expression)描述了一种字符串匹配的模式，可以用来检查一个串是否含有某种子串、将匹配的子串做替换或者从某个串中取出符合某个条件的子串等。
　　列目录时，　dir *.txt或ls *.txt中的*.txt就不是一个正则表达式,因为这里*与正则式的*的含义是不同的。
　　为便于理解和记忆，先从一些概念入手，所有特殊字符或字符组合有一个总表在后面，最后一些例子供理解相应的概念。
正则表达式 

　　是由普通字符（例如字符 a 到 z）以及特殊字符（称为元字符）组成的文字模式。正则表达式作为一个模板，将某个字符模式与所搜索的字符串进行匹配。
　　可以通过在一对分隔符之间放入表达式模式的各种组件来构造一个正则表达式，即/_expression/ 
普通字符 

　　由所有那些未显式指定为元字符的打印和非打印字符组成。这包括所有的大写和小写字母字符，所有数字，所有标点符号以及一些符号。 

&lt;img src ="aggbug/2483845.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>phphot</dc:creator><title>常用正则表达式</title><link>http://blog.csdn.net/phphot/archive/2008/05/25/2480013.aspx</link><pubDate>Sun, 25 May 2008 15:24:00 GMT</pubDate><guid>http://blog.csdn.net/phphot/archive/2008/05/25/2480013.aspx</guid><wfw:comment>comments/2480013.aspx</wfw:comment><comments>http://blog.csdn.net/phphot/archive/2008/05/25/2480013.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2480013.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2480013</trackback:ping><description>匹配中文字符的正则表达式： [\u4e00-\u9fa5]

匹配双字节字符(包括汉字在内)：[^\x00-\xff]

匹配空行的正则表达式：\n[\s| ]*\r

匹配HTML标记的正则表达式：/.*|/

匹配首尾空格的正则表达式：(^\s*)|(\s*$)

^\d+$　　//匹配非负整数（正整数 + 0）
^[0-9]*[1-9][0-9]*$　　//匹配正整数
^((-\d+)|(0+))$　　//匹配非正整数（负整数 + 0）
^-[0-9]*[1-9][0-9]*$　　//匹配负整数
^-?\d+$　　　　//匹配整数
^\d+(\.\d+)?$　　//匹配非负浮点数（正浮点数 + 0）
^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$　　//匹配正浮点数
^((-\d+(\.\d+)?)|(0+(\.0+)?))$　　//匹配非正浮点数（负浮点数 + 0）
^(-(([0-9]+\.[0-9]*[1-9][0-9]*)|(&lt;img src ="aggbug/2480013.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>phphot</dc:creator><title>自己学正则时做的笔记，其实正则也不难哦</title><link>http://blog.csdn.net/phphot/archive/2008/05/18/2456569.aspx</link><pubDate>Sun, 18 May 2008 22:20:00 GMT</pubDate><guid>http://blog.csdn.net/phphot/archive/2008/05/18/2456569.aspx</guid><wfw:comment>comments/2456569.aspx</wfw:comment><comments>http://blog.csdn.net/phphot/archive/2008/05/18/2456569.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2456569.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2456569</trackback:ping><description>RT，正则可以搞定的东西很多哦，大家学习学习吧
&lt;img src ="aggbug/2456569.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>phphot</dc:creator><title>常用正则表达式</title><link>http://blog.csdn.net/phphot/archive/2008/04/08/2259719.aspx</link><pubDate>Tue, 08 Apr 2008 10:03:00 GMT</pubDate><guid>http://blog.csdn.net/phphot/archive/2008/04/08/2259719.aspx</guid><wfw:comment>comments/2259719.aspx</wfw:comment><comments>http://blog.csdn.net/phphot/archive/2008/04/08/2259719.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>comments/commentRss/2259719.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2259719</trackback:ping><description>常用正则表达式&lt;img src ="aggbug/2259719.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>phphot</dc:creator><title>正则表达式30分钟入门教程</title><link>http://blog.csdn.net/phphot/archive/2008/02/22/2112520.aspx</link><pubDate>Fri, 22 Feb 2008 10:08:00 GMT</pubDate><guid>http://blog.csdn.net/phphot/archive/2008/02/22/2112520.aspx</guid><wfw:comment>comments/2112520.aspx</wfw:comment><comments>http://blog.csdn.net/phphot/archive/2008/02/22/2112520.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/2112520.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2112520</trackback:ping><description>正则表达式30分钟入门教程&lt;img src ="aggbug/2112520.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>phphot</dc:creator><title>PHP正则表达式收集</title><link>http://blog.csdn.net/phphot/archive/2007/12/20/1955189.aspx</link><pubDate>Thu, 20 Dec 2007 10:36:00 GMT</pubDate><guid>http://blog.csdn.net/phphot/archive/2007/12/20/1955189.aspx</guid><wfw:comment>comments/1955189.aspx</wfw:comment><comments>http://blog.csdn.net/phphot/archive/2007/12/20/1955189.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1955189.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1955189</trackback:ping><description>PHP正则表达式收集&lt;img src ="aggbug/1955189.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>phphot</dc:creator><title>正则表达式学习-进</title><link>http://blog.csdn.net/phphot/archive/2007/12/17/1943313.aspx</link><pubDate>Mon, 17 Dec 2007 11:21:00 GMT</pubDate><guid>http://blog.csdn.net/phphot/archive/2007/12/17/1943313.aspx</guid><wfw:comment>comments/1943313.aspx</wfw:comment><comments>http://blog.csdn.net/phphot/archive/2007/12/17/1943313.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1943313.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1943313</trackback:ping><description>正则表达式学习-进&lt;img src ="aggbug/1943313.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>phphot</dc:creator><title>正则表达式学习-初</title><link>http://blog.csdn.net/phphot/archive/2007/12/17/1943305.aspx</link><pubDate>Mon, 17 Dec 2007 11:19:00 GMT</pubDate><guid>http://blog.csdn.net/phphot/archive/2007/12/17/1943305.aspx</guid><wfw:comment>comments/1943305.aspx</wfw:comment><comments>http://blog.csdn.net/phphot/archive/2007/12/17/1943305.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1943305.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1943305</trackback:ping><description>正则表达式学习-初&lt;img src ="aggbug/1943305.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>phphot</dc:creator><title>看实例学正则表达式</title><link>http://blog.csdn.net/phphot/archive/2007/12/05/1917700.aspx</link><pubDate>Wed, 05 Dec 2007 10:30:00 GMT</pubDate><guid>http://blog.csdn.net/phphot/archive/2007/12/05/1917700.aspx</guid><wfw:comment>comments/1917700.aspx</wfw:comment><comments>http://blog.csdn.net/phphot/archive/2007/12/05/1917700.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1917700.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1917700</trackback:ping><description>看实例学正则表达式&lt;img src ="aggbug/1917700.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>phphot</dc:creator><title>正则表达式秘籍</title><link>http://blog.csdn.net/phphot/archive/2007/11/26/1902600.aspx</link><pubDate>Mon, 26 Nov 2007 12:53:00 GMT</pubDate><guid>http://blog.csdn.net/phphot/archive/2007/11/26/1902600.aspx</guid><wfw:comment>comments/1902600.aspx</wfw:comment><comments>http://blog.csdn.net/phphot/archive/2007/11/26/1902600.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>comments/commentRss/1902600.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1902600</trackback:ping><description>正则表达式秘籍&lt;img src ="aggbug/1902600.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>phphot</dc:creator><title>最基本也是最常用的一些正则表达式</title><link>http://blog.csdn.net/phphot/archive/2007/11/20/1895252.aspx</link><pubDate>Tue, 20 Nov 2007 19:34:00 GMT</pubDate><guid>http://blog.csdn.net/phphot/archive/2007/11/20/1895252.aspx</guid><wfw:comment>comments/1895252.aspx</wfw:comment><comments>http://blog.csdn.net/phphot/archive/2007/11/20/1895252.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>comments/commentRss/1895252.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1895252</trackback:ping><description>最基本也是最常用的一些正则表达式&lt;img src ="aggbug/1895252.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>