<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9221849043717446821</id><updated>2011-11-27T16:49:48.891-08:00</updated><category term='攻击'/><category term='赚钱'/><category term='Vista'/><category term='搞笑'/><category term='qq'/><category term='序列号'/><category term='bug'/><category term='AJAX'/><category term='免费空间免费域名'/><category term='递归'/><category term='seo优化'/><category term='JS'/><category term='Windows'/><category term='word'/><category term='线程'/><category term='网站导航'/><category term='智力题'/><category term='Google博客优化'/><category term='互联网'/><category term='电脑应用'/><category term='注册表'/><category term='测试'/><category term='SqlServer'/><category term='.net'/><category term='正则'/><category term='枚举'/><category term='法律用网'/><category term='短信'/><category term='托盘'/><category term='软件下载'/><category term='.net3.0'/><category term='office'/><category term='游戏开发'/><category term='p2p'/><category term='CSS'/><category term='CAD'/><category term='事件'/><category term='编译与反编译'/><category term='正文提取'/><category term='XML'/><category term='资料下载'/><category term='IIS'/><category term='机器人程序'/><category term='pdf'/><category term='oracle'/><category term='C#'/><category term='数据库'/><category term='nat'/><category term='C语言'/><category term='socket'/><category term='排名'/><category term='发送邮件'/><category term='wpf'/><category term='推广'/><category term='html'/><category term='网络通信'/><category term='试题'/><category term='asp.net'/><category term='资料'/><category term='品味人生'/><category term='优化keyword'/><category term='文章'/><title type='text'>文博客-9牛1毛</title><subtitle type='html'>引爆你的博客,程序开发,源代码下载,.net,数据库,Access,SqlServer,Google博客优化,费空间免费域名</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default?start-index=101&amp;max-results=100'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1766</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-4963314645018557218</id><published>2009-05-14T01:02:00.003-07:00</published><updated>2009-05-14T01:02:40.246-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>Java正则表达式详解</title><summary type='text'>2005-10-0810:01作者：仙人掌工作室出处：KissJava.com责任编辑：王玉涵如果你曾经用过Perl或任何其他内建正则表达式支持的语言，你一定知道用正则表达式处理文本和匹配模式是多么简单。如果你不熟悉这个术语，那么“正则表达式”（RegularExpression）就是一个字符构成的串，它定义了一个用来搜索匹配字符串的模式。许多语言，包括Perl、PHP、Python、JavaScript和JScript，都支持用正则表达式处理文本，一些文本编辑器用正则表达式实现高级“搜索-替换”功能。那么Java又怎样呢？本文写作时，一个包含了用正则表达式进行文本处理的Java规范需求（SpecificationRequest）已经得到认可，你可以期待在JDK的下一版本中看到它。然而，如果现在就需要使用正则表达式，又该怎么办呢？你可以从Apache.org下载源代码开放的</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/4963314645018557218/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/java_31.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4963314645018557218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4963314645018557218'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/java_31.html' title='Java正则表达式详解'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3462659259664480243</id><published>2009-05-14T01:02:00.001-07:00</published><updated>2009-05-14T01:02:14.739-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>mb</title><summary type='text'>mb_ereg(i)_replace()代码注射漏洞及其延伸出的正则应用安全问题author:ryat.orgteam:http://www.80vul.comdate:2009-04-30一描叙mb_ereg_replace()是支持多字节的正则表达式替换函数,函数原型如下:stringmb_ereg_replace(string$pattern,string$replacement,string$string[,string$option=msr])当指定mb_ereg(i)_replace()的option参数为e时,replacement参数[在适当的逆向引用替换完后]将作为php代码被执行,但php在处理这一过程中,存在安全隐患,可能导致绕过程序的逻辑执行任意代码,另外程序员对正则匹配替换认识不够[包括preg_replace等函数],容易饶过安全限制,导致安全漏洞.二分析</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3462659259664480243/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/mb_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3462659259664480243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3462659259664480243'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/mb_14.html' title='mb'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3658044188184683129</id><published>2009-05-14T01:01:00.003-07:00</published><updated>2009-05-14T01:01:49.837-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>常用正则表达式</title><summary type='text'>     匹配中文字符的正则表达式： [u4e00-u9fa5]评注：匹配中文还真是个头疼的事，有了这个表达式就好办了 匹配双字节字符(包括汉字在内)：[^x00-xff]评注：可以用来计算字符串的长度（一个双字节字符长度计2，ASCII字符计1） 匹配空白行的正则表达式：ns*r评注：可以用来删除空白行 匹配HTML标记的正则表达式：&lt;(S*?)[^&gt;]*&gt;.*?|&lt;.*? /&gt;评注：网上流传的版本太糟糕，上面这个也仅仅能匹配部分，对于复杂的嵌套标记依旧无能为力 匹配首尾空白字符的正则表达式：^s*|s*$评注：可以用来删除行首行尾的空白字符(包括空格、制表符、换页符等等)，非常有用的表达式 匹配Email地址的正则表达式：w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*评注：表单验证时很实用 匹配网址URL的正则表达式：[a-zA-z]+://[^s]*评注：</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3658044188184683129/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_8769.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3658044188184683129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3658044188184683129'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_8769.html' title='常用正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-1662456209452759973</id><published>2009-05-14T01:01:00.001-07:00</published><updated>2009-05-14T01:01:15.685-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>小儿歪脖子的推拿</title><summary type='text'>小儿肌性斜颈是指小儿的头向患侧倾斜，颜面旋向健侧。勉强将其拨正，则引起患儿啼哭不止，又迅速转回原位。早期症状不太明显，容易被忽视。这种“歪脖子”婴儿在其单侧向胸锁乳突肌上，可摸到棱形肿物。小儿肌性斜颈的病因，多系在分娩时一侧的胸锁乳突肌因产道挤压或产钳挤压牵拉，使之局部受伤出血，血肿机化造成挛缩；或因分娩时胎儿头位不正，阻碍一侧胸锁乳突肌的供血，引起缺血性改变；或因胎儿在子宫内，头部向一侧偏斜，均可导致本病。：(一)患儿取仰卧位，用拇指在患侧胸锁乳突肌施以推擦法，以促进局部血液循环。为防止擦破皮肤，可先涂润滑剂（凡士林，植物油均可）。(二)用拇指按柔患侧以放松局，部再用中指、食指在患处自上而下地左右揉动，以舒筋活血、缓解痉挛。(三)用拇指、食指于患处两侧进行左右捏拿、弹拨，以消散结块、增加血液循环。(四)一手扶住患侧肩，部另一手扶住患儿头顶，使患儿头部渐渐向健侧部倾斜，</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/1662456209452759973/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3793.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/1662456209452759973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/1662456209452759973'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3793.html' title='小儿歪脖子的推拿'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-5338390324474605357</id><published>2009-05-14T01:00:00.003-07:00</published><updated>2009-05-14T01:00:45.403-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>夏客行 » MySql正则表达式的描述</title><summary type='text'>正则表达式（regex)是定义复杂查询的一个强有力的工具。这里是一个简单的资料，它忽略了一些详细的信息。正则表达式定义了一个字符串的规则。最简单的正则表达式不包含任何保留字。例如，正则表达式hello只和字符串“hello”匹配。一般的正则表达式使用了某些特殊的结构，所以它能匹配更多的字符串。例如，正则表达式hello|word既能匹配字符串“hello”也能匹配字符串“word”。举一个更复杂一点的例子，正则表达式B[an]*s可以匹配字符串“Bananas”、“Baaaaas”、“Bs”以及其他任何以B开头以s结尾的字符串，中间可以包括任意个a和任意个n的组合。一个正则表达式中的可以使用以下保留字^所匹配的字符串以后面的字符串开头mysqlselectfonfoREGEXP^fo$;-0（表示不匹配）mysqlselectfofoREGEXP^fo;-1（表示匹配）$</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/5338390324474605357/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/mysql_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/5338390324474605357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/5338390324474605357'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/mysql_14.html' title='夏客行 &amp;raquo; MySql正则表达式的描述'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3956312261018722530</id><published>2009-05-14T01:00:00.001-07:00</published><updated>2009-05-14T01:00:14.840-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则表达式基础知识</title><summary type='text'>正在表达式基础一个正则表达式就是由普通字符（例如字符a到z）以及特殊字符（称为元字符）组成的文字模式。该模式描述在查找文字主体时待匹配的一个或多个字符串。正则表达式作为一个模板，将某个字符模式与所搜索的字符串进行匹配。如：JScriptVBScript匹配/^\[\t]*$/^\[\t]*$匹配一个空白行。/\d{2}-\d{5}/\d{2}-\d{5}验证一个ID号码是否由一个2位数字，一个连字符以及一个5位数字组成。/(.*).*\/\1/(.*).*\/\1匹配一个HTML标记。下表是元字符及其在正则表达式上下文中的行为的一个完整列表：字符描述\将下一个字符标记为一个特殊字符、或一个原义字符、或一个向后引用、或一个八进制转义符。例如，'n'匹配字符n。'\n'匹配一个换行符。序列'\\'匹配\而\(则匹配(。^匹配输入字符串的开始位置。如果设置了RegExp对象的Multiline</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3956312261018722530/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_7583.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3956312261018722530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3956312261018722530'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_7583.html' title='正则表达式基础知识'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-7417042185993007669</id><published>2009-05-14T00:59:00.003-07:00</published><updated>2009-05-14T00:59:45.304-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>常用正则表达式收集&amp;勘误(实验室推荐)</title><summary type='text'>写在前面:正则表达式用于字符串处理、表单验证等场合，实用高效。但用到时总是不太把握，以致往往要查证一番。现将一些常用的表达式收集于此，以备不时之需。注:以下表达式均在RegexBuddy测试修正过，若有错，还望指出。另外注意，在不同的语言环境下，对正则的支持都可能不一样，实际应用时注意不同之处匹配中文字符的正则表达式：[\u4e00-\u9fa5]评注：匹配中文还真是个头疼的事，有了这个表达式就好办了aspxuexi.com匹配双字节字符(包括汉字在内)：[^\x00-\xff]评注：可以用来计算字符串的长度（一个双字节字符长度计2，ASCII字符计1）匹配空白行的正则表达式：\n\s*\r评注：可以用来删除空白行匹配HTML标记的正则表达式：(\S*?)[^]*.*?/\1|.*?/评注：网上流传的版本太糟糕，上面这个也仅仅能匹配部分，</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/7417042185993007669/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_724.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/7417042185993007669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/7417042185993007669'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_724.html' title='常用正则表达式收集&amp;勘误(实验室推荐)'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-6022874226888169510</id><published>2009-05-14T00:59:00.001-07:00</published><updated>2009-05-14T00:59:16.573-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>php正则表达式学习笔记</title><summary type='text'>本文详细介绍正则表达式学习笔记正则表达式(regularexpression)描述了一种字符串匹配的模式，可以用来检查一个串是否含有某种子串、将匹配的子串做替换或者从某个串中取出符合某个条件的子串等。列目录时，dir*.txt或ls*.txt中的*.txt就不是一个正则表达式,因为这里*与正则式的*的含义是不同的。为便于理解和记忆，先从一些概念入手，所有特殊字符或字符组合有一个总表在后面，最后一些例子供理解相应的概念。正则表达式是由普通字符（例如字符a到z）以及特殊字符（称为元字符）组成的文字模式。正则表达式作为一个模板，将某个字符模式与所搜索的字符串进行匹配。可以通过在一对分隔符之间放入表达式模式的各种组件来构造一个正则表达式，即/expression/普通字符由所有那些未显式指定为元字符的打印和非打印字符组成。这包括所有的大写和小写字母字符，所有数字，所有标点符号以及一些符号。</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/6022874226888169510/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/php_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6022874226888169510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6022874226888169510'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/php_14.html' title='php正则表达式学习笔记'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-4165557681312474856</id><published>2009-05-14T00:58:00.001-07:00</published><updated>2009-05-14T00:58:52.998-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>.NET正则表达式使用高级技巧之替换类</title><summary type='text'>因为.net的基本正则语法和Perl5基本相同，所以基本语法你可以去下载一下M$的JS帮助文档，上面有详细的说明\d表示什么，{,5}表示什么，\[表示什么，这里我只想提醒大家一点，为了避免和反向引用相冲突，在你用\nn表示八进制的ASCII码时，请在\后加0，就是说，\40在表示ASCII码时，请这样写\040。替换Regex类有一个静态的Replace方法，其实例也有一个Replace方法，这个方法很强大，因为它可以传入一个delegate，这样，你可以自定义每次捕获匹配时，如何处理捕获的内容。publicstaticvoidMain(){strings=11235;s=Regex.Replace(s,@\d+,newMatchEvaluator(CorrectString),RegexOptions.Compiled|RegexOptions.IgnoreCase);</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/4165557681312474856/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/net_2956.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4165557681312474856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4165557681312474856'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/net_2956.html' title='.NET正则表达式使用高级技巧之替换类'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-2678778639443910589</id><published>2009-05-14T00:57:00.004-07:00</published><updated>2009-05-14T00:58:00.109-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则表达式</title><summary type='text'>匹配中文字符的正则表达式： [\u4e00-\u9fa5] 匹配双字节字符(包括汉字在内)：[^\x00-\xff] 匹配空行的正则表达式：\n[\s| ]*\r 匹配HTML标记的正则表达式：/&lt;(.*)&gt;.*&lt;\/\1&gt;|&lt;(.*) \/&gt;/ 匹配首尾空格的正则表达式：(^\s*)|(\s*$) 匹配Email地址的正则表达式：\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* 匹配网址URL的正则表达式：http://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)? (1)应用：计算字符串的长度（一个双字节字符长度计2，ASCII字符计1） String.prototype.len=function(){return this.replace([^\x00-\xff]/g,"aa").length;} (2)应用：</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/2678778639443910589/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_631.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2678778639443910589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2678778639443910589'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_631.html' title='正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-4487232332885267142</id><published>2009-05-14T00:57:00.003-07:00</published><updated>2009-05-14T00:57:58.187-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>实现对字符串正则替换的函数</title><summary type='text'>RegReplace(str,regexStr,RepalceStr)对str进行正则替换如：htmlstr=123imgsrc=asdf.gifborder=045b6/bhtmlstr2=RegReplace(htmlstr,(.[^]*),)返回htmlstr2为123456FunctionRegReplace(Str,PatternStr,RepStr)DimNewStr,regExNewStr=Strifisnull(NewStr)thenRegReplace=exitfunctionendifSetregEx=NewRegExpregEx.IgnoreCase=TrueregEx.Global=TrueregEx.Pattern=PatternStrNewStr=regEx.Replace(NewStr,RepStr)RegReplace=NewStrtags:to"</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/4487232332885267142/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_1729.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4487232332885267142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4487232332885267142'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_1729.html' title='实现对字符串正则替换的函数'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3968620701631973810</id><published>2009-05-14T00:57:00.001-07:00</published><updated>2009-05-14T00:57:53.792-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>JavaScript常用正则表达式</title><summary type='text'>     JavaScript之家—www.jrose.cn提供正则表达式验证:    验证 Email: String filter=/^([a-z]|[A-Za-z0-9]|[-]|[_][.])([A-Za-z0-9])+@([A-Za-z0-9]|[-])+"..+$/ ;    匹配空白行的正则表达式："n"s*"r    评注：可以用来删除空白行    匹配HTML标记的正则表达式：&lt;("S*?)[^&gt;]*&gt;.*?&lt;/"1&gt;|&lt;.*? /&gt;    评注：网上流传的版本太糟糕，上面这个也仅仅能匹配部分，    对于复杂的嵌套标记依旧无能为力匹配首尾空白字符的正则表达式：^"s*|"s*$    评注：可以用来删除行首行尾的空白字符(包括空格、制表符、换页符等等)，    非常有用的表达式匹配Email地址的正则表达式："w+([-+.]"w+)*@"w+([-.]"w+)*".</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3968620701631973810/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/javascript_4027.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3968620701631973810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3968620701631973810'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/javascript_4027.html' title='JavaScript常用正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3944099864431104224</id><published>2009-05-14T00:52:00.003-07:00</published><updated>2009-05-14T00:52:40.066-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>使用正则表达式验证日期格式</title><summary type='text'>项目中频频用到日期格式的验证，前段时间在网上发现了一个很好的代码，我在此基础上做了少许的改进，特将此保留到我的BLOG中。。。 js代码片段： /* *validate date(include bissextile) *format: dd-mm-yyyy *add by tony */ function isValidDate(sText) {     //yyyy-MM-dd     //var reDate = /^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-0?2-(0?[1-9]|1\d|2[0-8])</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3944099864431104224/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_6187.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3944099864431104224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3944099864431104224'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_6187.html' title='使用正则表达式验证日期格式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8724872602547475282</id><published>2009-05-14T00:52:00.001-07:00</published><updated>2009-05-14T00:52:09.721-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则表达式，扣取字符串</title><summary type='text'>形如:我是{姓名}，{学校}毕业，出身与{生日}得到姓名，毕业，生日等字符函数为：Stringregex="\\{([^\\}]+)\\}";Matchermatcher=pattern.matcher(staticTmsContent);MapString,Stringmap=newHashMapString,String();ListStringlist=newArrayListString();while(matcher.find()){Stringsign=matcher.group(1);list.add(matcher.group(1));}returnlist;regex分析[]:里面表示字符只能在括号要里取值,如果[abc]则表示字母只能是^:如果不在开头，则表示取相反的值\\:转义需要\，所以java里面“\”需要“\\”表示\\?:表示转义字符"?"[^\\}]:</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8724872602547475282/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_9994.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8724872602547475282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8724872602547475282'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_9994.html' title='正则表达式，扣取字符串'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-4629501322597243165</id><published>2009-05-14T00:51:00.003-07:00</published><updated>2009-05-14T00:51:44.370-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>引用 引用 清人著  书法秘籍</title><summary type='text'> 引用hengxuan00 的 引用 清人著 书法秘籍 引用凡欲学书之人，工夫分作三段，初要专一，次要广大，三要脱化，每段三五年火候方足。    初取古人之大家，一人以为宗主。门庭一立，脚根牢把，朝夕沉酣其中，务使笔笔相似，使人望之便知是此种法嫡，纵有谏我、谤我，我不为之稍动，常有一笔一画数十日不能合辙者，此际如触墙壁，全无入路。他人到此，每每退步、灰心。我于此心愈坚，志愈猛，功愈勤，一往直前，久之则有少分相应，初段之难如此。    此后方做中段工夫，取魏晋唐宋元明数十大家，逐字临摹数十日，当其临时，诸家形模，时时引入吾胸，又须步步回头顾祖，将诸家之长默识归源，庶几不为所诱，工夫到此，悠忽五六年矣。    至末段则无他法，只是守定一家，以为宗主，又时出入各家，无古无今无人无我写个不休，到熟极处，忽然悟门大开，层层透入，洞见古人精奥，我之笔底迸出天机，变动挥洒，回想初时宗主不缚不脱之境，</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/4629501322597243165/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3815.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4629501322597243165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4629501322597243165'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3815.html' title='引用 引用 清人著  书法秘籍'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-2449353358855813749</id><published>2009-05-14T00:51:00.001-07:00</published><updated>2009-05-14T00:51:11.848-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则表达式</title><summary type='text'>1. 表达式的递归匹配 有时候，我们需要用正则表达式来分析一个计算式中的括号配对情况。比如， 使用表达式 "\( [^)]* \)" 或者 "\( .*? \)" 可以匹配一对小括号。但是如果括号 内还嵌有一层括号的话 ，如 "( ( ) )"，则这种写法将不能够匹配正确，得到的结果是 "( ( )" 。类似情况的还有 HTML 中支持嵌套的标签如 "&lt;font&gt; &lt;/font&gt;" 等。本节将要讨论的是，想办法把有嵌套的的成对括号或者成对标签匹配出来。匹配未知层次的嵌套：有的正则表达式引擎，专门针对这种嵌套提供了支持。并且在栈空间允许的情况下，能够支持任意未知层次的嵌套：比如 Perl，PHP，GRETA 等。在 PHP 和 GRETA 中，表达式中使用 "(?R)" 来表示嵌套部分。匹配嵌套了未知层次的 "小括号对" 的表达式写法如下："\( ([^()] | (?R))* \)"。[</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/2449353358855813749/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_8915.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2449353358855813749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2449353358855813749'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_8915.html' title='正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3165444915510611032</id><published>2009-05-14T00:50:00.003-07:00</published><updated>2009-05-14T00:50:41.357-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>常用正则表达式</title><summary type='text'>^[0-9]*[1-9][0-9]*$//正整数^((-\\d+)|(0+))$//非正整数（负整数+0）^-[0-9]*[1-9][0-9]*$//负整数^-?\\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+(//非正浮点数（负浮点数+0）^(-(([0-9]+\\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\\.[0-9]+)|([0-9]*[1-9][0-9]*)))$//负浮点数^(-?\\d+)(//浮点数^[A-Za-z]+$//由26个英文字母组成的字符串^[A-Z]+$//由26个英文字母的大写组成的字符串^[a-z]+$//由26</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3165444915510611032/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_5092.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3165444915510611032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3165444915510611032'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_5092.html' title='常用正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3810683011529770635</id><published>2009-05-14T00:50:00.001-07:00</published><updated>2009-05-14T00:50:11.704-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>常用正则表达式</title><summary type='text'>^[0-9]*[1-9][0-9]*$//正整数^((-\\d+)|(0+))$//非正整数（负整数+0）^-[0-9]*[1-9][0-9]*$//负整数^-?\\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+(//非正浮点数（负浮点数+0）^(-(([0-9]+\\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\\.[0-9]+)|([0-9]*[1-9][0-9]*)))$//负浮点数^(-?\\d+)(//浮点数^[A-Za-z]+$//由26个英文字母组成的字符串^[A-Z]+$//由26个英文字母的大写组成的字符串^[a-z]+$//由26</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3810683011529770635/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_1659.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3810683011529770635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3810683011529770635'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_1659.html' title='常用正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8269066736004065473</id><published>2009-05-14T00:49:00.001-07:00</published><updated>2009-05-14T00:49:48.714-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则表达式30分钟入门教程</title><summary type='text'>正则表达式30分钟入门教程版本：v2.31(2009-4-11)作者：deerchao转载请注明来源目录跳过目录本文目标如何使用本教程正则表达式到底是什么东西？入门测试正则表达式元字符字符转义重复字符类分枝条件反义分组后向引用零宽断言负向零宽断言注释贪婪与懒惰处理选项平衡组/递归匹配还有些什么东西没提到联系作者最后,来点广告……网上的资源及本文参考文献更新纪录本文目标30分钟内让你明白正则表达式是什么，并对它有一些基本的了解，让你可以在自己的程序或网页里使用它。如何使用本教程最重要的是请给我30分钟，如果你没有使用正则表达式的经验，请不要试图在30秒内入门除非你是超人:)别被下面那些复杂的表达式吓倒，只要跟着我一步一步来，你会发现正则表达式其实并没有你想像中的那么困难。当然，如果你看完了这篇教程之后，发现自己明白了很多，却又几乎什么都记不得，那也是很正常的我认为，</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8269066736004065473/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/30_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8269066736004065473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8269066736004065473'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/30_14.html' title='正则表达式30分钟入门教程'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-1581248425698083978</id><published>2009-05-14T00:48:00.001-07:00</published><updated>2009-05-14T00:48:12.046-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则表达式的替换实例</title><summary type='text'>天气晴好，正当上午，悠闲的坐在窗边品着M记的Coffee,想起了刚才的事...又一次用到了正则表达式，并且又一次救我于批量替换字符的危难之中。如果没有它那这次的问题估计花费的时间就多了，写好了正则表达式和替换的表达式，按一下“Replace”按钮，不到30秒解救我于烦躁的体力劳动中，感觉就两个字“舒服”。闲话也说得差不多了，看看我的实际问题吧：修改jsp路径问题，下面的语句是源自SpringMVC的Controller的返回，由于之前许多小盆友在Coding的时候把jsp页面的路径写死在了类中，如：returnnewModelAndView("reportBatchPrint",map);现在需要在这个路径前添加一层report文件夹，修改后如：returnnewModelAndView("/report/reportBatchPrint",map);正常情况下可以以</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/1581248425698083978/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_535.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/1581248425698083978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/1581248425698083978'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_535.html' title='正则表达式的替换实例'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8047426651115480226</id><published>2009-05-14T00:47:00.003-07:00</published><updated>2009-05-14T00:47:39.345-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则表达式语法</title><summary type='text'>一个正则表达式就是由普通字符（例如字符a到z）以及特殊字符（称为元字符）组成的文字模式。该模式描述在查找文字主体时待匹配的一个或多个字符串。正则表达式作为一个模板，将某个字符模式与所搜索的字符串进行匹配。这里有一些可能会遇到的正则表达式示例：JScriptVBScript匹配/^\[\t]*$/^\[\t]*$匹配一个空白行。/\d{2}-\d{5}/\d{2}-\d{5}验证一个ID号码是否由一个2位数字，一个连字符以及一个5位数字组成。/＜(.*)＞.*＜\/\1＞/＜(.*)＞.*＜\/\1＞匹配一个HTML标记。下表是元字符及其在正则表达式上下文中的行为的一个完整列表：字符描述\将下一个字符标记为一个特殊字符、或一个原义字符、或一个向后引用、或一个八进制转义符。例如，'n'匹配字符n。'\n'匹配一个换行符。序列'\\'匹配\而\(则匹配(。^匹配输入字符串的开始位置。如果设置了</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8047426651115480226/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3515.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8047426651115480226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8047426651115480226'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3515.html' title='正则表达式语法'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-1077416374439257211</id><published>2009-05-14T00:47:00.001-07:00</published><updated>2009-05-14T00:47:09.106-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>Java 正则表达式简介</title><summary type='text'>1.任选其一(a|b|c)任选abc中之一2.通配符:用点号代表a.b3.指定范围:[0-9][a-z][A-B][^0]非04.次数*:0到多次+:1到多次?:0到1次5.n次数[0-9]{n}n次{n,m}n到m次任意多个空格:(\s*)直到出现为止任意多个字符([^]*)||浏览()|(0)最近读者：网友评论：发表评论：姓名：*姓名最长为50字节网址或邮箱：(选填)内容：验证码：请点击后输入四位验证码，字母不区分大小写</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/1077416374439257211/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/java_3300.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/1077416374439257211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/1077416374439257211'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/java_3300.html' title='Java 正则表达式简介'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-6659389469640769465</id><published>2009-05-14T00:46:00.001-07:00</published><updated>2009-05-14T00:46:39.650-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>常用的JavaScript验证正则表达式</title><summary type='text'>匹配中文字符的正则表达式：[u4e00-u9fa5]评注：匹配中文还真是个头疼的事，有了这个表达式就好办了匹配双字节字符(包括汉字在内)：[^x00-xff]评注：可以用来计算字符串的长度（一个双字节字符长度计2，ASCII字符计1）匹配空白行的正则表达式：ns*r评注：可以用来删除空白行匹配HTML标记的正则表达式：(S*?)[^]*.*?|.*?/评注：网上流传的版本太糟糕，上面这个也仅仅能匹配部分，对于复杂的嵌套标记依旧无能为力匹配首尾空白字符的正则表达式：^s*|s*$评注：可以用来删除行首行尾的空白字符(包括空格、制表符、换页符等等)，非常有用的表达式匹配Email地址的正则表达式：w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*评注：表单验证时很实用匹配网址URL的正则表达式：[a-zA-z]+://[^s]*评注：网上流传的版本功能很有限，</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/6659389469640769465/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/javascript_4876.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6659389469640769465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6659389469640769465'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/javascript_4876.html' title='常用的JavaScript验证正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8534841564712761244</id><published>2009-05-14T00:45:00.003-07:00</published><updated>2009-05-14T00:45:40.681-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>linux grep命令</title><summary type='text'>Linux下正则表达式和grep命令的使用　1 什么是正规表示法：　　什么是正规表示式 ( Regular Exdivssion, 底下简称 RE ) 呢？简单的说，在 Linux 的环境下，我们可以透过『字符串以及一些特殊字符的辅助』来进行文字的比对工作，好来让使用者筛选自己所需要数据。　　这些特殊的字符与搭配使用的工具，就构成了正规表示法的主轴!　　例如 /etc/rc.d/init.d 这个目录当中好了，如果你要找到一个文件内容含有 mail 这个字符串的文件名，要怎么搜寻呢？利用 grep 配合 mail 以及万用字符来搜寻所有的文件名『grep 'mail' /etc/rc.d/init.d/*』　　2 正规表示法对于系统管理员的用途：　　对于系统管理员来说，正规表示法则是一个『不可不学的好东西!』由于系统如果在繁忙的情况之下，每天产生的讯息信息会多到你无法想象的地步，而 </summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8534841564712761244/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/linux-grep.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8534841564712761244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8534841564712761244'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/linux-grep.html' title='linux grep命令'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-6602363024864087113</id><published>2009-05-14T00:45:00.001-07:00</published><updated>2009-05-14T00:45:09.951-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>UNIX/LINUX SHELL 正则表达式语法</title><summary type='text'>一个正则表达式就是由普通字符（例如字符a到z）以及特殊字符（称为元字符）组成的文字模式。该模式描述在查找文字主体时待匹配的一个或多个字符串。正则表达式作为一个模板，将某个字符模式与所搜索的字符串进行匹配。\将下一个字符标记为一个特殊字符、或一个原义字符、或一个后向引用、或一个八进制转义符。例如，'n'匹配字符n。'\n'匹配一个换行符。序列'\\'匹配\而\(则匹配(。^匹配输入字符串的开始位置。$匹配输入字符串的结束位置。*匹配前面的子表达式零次或多次。例如，zo*能匹配z以及zoo。*等价于{0,}。+匹配前面的子表达式一次或多次。例如，'zo+'能匹配zo以及zoo，但不能匹配z。+等价于{1,}。?匹配前面的子表达式零次或一次。例如，do(es)?可以匹配do或does中的do。?等价于{0,1}。{n}n是一个非负整数。匹配确定的n次。例如，'o{2}'不能匹配Bob中的'o'</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/6602363024864087113/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/unixlinux-shell.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6602363024864087113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6602363024864087113'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/unixlinux-shell.html' title='UNIX/LINUX SHELL 正则表达式语法'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-1750609988717547557</id><published>2009-05-14T00:44:00.003-07:00</published><updated>2009-05-14T00:44:39.373-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>我会紧紧跟着你们的</title><summary type='text'>        新买了四本书留着儿童节送给张正则，没有耐得住提前就给他带回家了。张正则对于书本身就有浓厚的兴趣，何况新书，缠着我给他读，答应他吃过晚饭后读两本才依。但是晚饭还是不肯好好吃，最近一直为吃饭头疼，跟他商量好好吃饭晚上将四本都读与他听，总算吃了点。后来我们到操场上散步，他骑了两圈自行车就不肯骑了，和我商量可不可以回家，一心想着我给他读书，生怕回家晚了来不及将四本书读完。我告诉他不急，答应读四本书就肯定给你读四本书，他来了一句说话要算话得到我的点头才依。接下去的一个小时，他不停地提醒我可以回家了，又不止一次地提醒我说话要算话。        坐在床上给张正则读小熊奥菲系列绘本，四本书几乎是一口气读完，一边听一边评价着故事好听。读书的时候我依稀听到楼下有孩子哭闹的声音（后来问张正则他说没有听到，看来听故事很专心），等读完故事站在阳台上听楼下议论才知道两个小孩和大人走散了，哭着呢。</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/1750609988717547557/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_5889.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/1750609988717547557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/1750609988717547557'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_5889.html' title='我会紧紧跟着你们的'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8815974067916686339</id><published>2009-05-14T00:44:00.001-07:00</published><updated>2009-05-14T00:44:09.442-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则过滤有危险的html(部分php版)_skeryl的空间</title><summary type='text'>?php/***过滤在线编辑器产生的不安全html代码.**PHPversions4and5**@copyright版权所无，任意传播.*@link*@namehtml过滤*@versionv0.0.12*@authorLucklrj(sunny_lrj@yeah.net,qq:7691272)*@lastmodified2006-06-1212:21(Tue,2006-06-12)*@notice此版本只过滤js,框架，表单，meta作者能力有限，使用本程序若产生任何安全问题，与本人无关。欢迎来信与我交流。*/$str=imgsrc='blah'onmouSEOver='javascript:alert(\xx\)';/*不需要过滤的数组*/$htm_on=array(acronym,acronym,baseFont,baseFont,button,button,caption,</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8815974067916686339/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/htmlphpskeryl.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8815974067916686339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8815974067916686339'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/htmlphpskeryl.html' title='正则过滤有危险的html(部分php版)_skeryl的空间'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3078989963081194033</id><published>2009-05-14T00:43:00.003-07:00</published><updated>2009-05-14T00:43:43.131-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>.NET正则表达式应用示例</title><summary type='text'>下面的代码示例使用静态Regex.IsMatch方法验证一个字符串是否为有效电子邮件格式。如果字符串包含一个有效的电子邮件地址，则IsValidEmail方法返回true，否则返回false，但不采取其他任何操作。您可以使用IsValidEmail，在应用程序将地址存储在数据库中或显示在ASP.NET页中之前，筛选出包含无效字符的电子邮件地址。[VisualBasic]FunctionIsValidEmail(strInAsString)AsBoolean'ReturntrueifstrInisinvalide-mailformat.ReturnSystem.Text.RegularExpressions.Regex.IsMatch(strIn,(^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3078989963081194033/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/net_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3078989963081194033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3078989963081194033'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/net_14.html' title='.NET正则表达式应用示例'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3846859170022513807</id><published>2009-05-14T00:43:00.001-07:00</published><updated>2009-05-14T00:43:10.254-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则表达式口诀</title><summary type='text'>正则是每个程序员绕不开的堡垒，只有把它攻下来。我觉得正则之所以难，第一难是需要记忆，第二难是要求具备抽象逻辑思维。来源PHPHOT签于网上太多的介绍都是一篇凶悍的短文，边看边理解可以，帮助记忆不行。又受五笔字型字根表口诀白手看头三二斤...的启发，试作正则表达式助记口诀又名正则打油诗，版本0.1，绝对原创，仿冒必究，：）注：本文仅为学习正则时为了便于记忆而作，不能代替系统而全面的学习过程，错漏之处，敬请指正！正则其实也势利，削尖头来把钱揣；（指开始符号^和结尾符号$）特殊符号认不了，弄个倒杠来引路；（指\.\*等特殊符号）倒杠后面跟小w，数字字母来表示；（\w跟数字字母;\d跟数字）倒杠后面跟小d，只有数字来表示；倒杠后面跟小a，报警符号嘀一声；倒杠后面跟小b，单词分界或退格；倒杠后面跟小t，制表符号很明了；倒杠后面跟小r，回车符号知道了；倒杠后面跟小s，空格符号很重要；小写跟罢跟大写，</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3846859170022513807/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3822.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3846859170022513807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3846859170022513807'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3822.html' title='正则表达式口诀'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8331811225479613669</id><published>2009-05-14T00:42:00.001-07:00</published><updated>2009-05-14T00:42:41.838-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>【zz】 Perl中的正则表达式</title><summary type='text'>9Perl中的正则表达式正则表达式的三种形式正则表达式中的常用模式正则表达式的8大原则正则表达式是Perl语言的一大特色，也是Perl程序中的一点难点，不过如果大家能够很好的掌握他，就可以轻易地用正则表达式来完成字符串处理的任务，当然在CGI程序设计中就更能得心应手了。下面我们列出一些正则表达式书写时的一些基本语法规则。--------------------------------------------------------------------------------9.1正则表达式的三种形式首先我们应该知道Perl程序中，正则表达式有三种存在形式，他们分别是：匹配：m/regexp;/（还可以简写为/regexp;/，略去m）替换：s/pattern;/replacement;/转化：tr/pattern;/replacemnt;/这三种形式一般都和=~或!~搭配使用（其中=</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8331811225479613669/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/zz-perl.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8331811225479613669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8331811225479613669'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/zz-perl.html' title='【zz】 Perl中的正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-5456535950757450962</id><published>2009-05-14T00:41:00.003-07:00</published><updated>2009-05-14T00:41:40.229-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>写对正则：一行代码，速度差50倍</title><summary type='text'>通过网页搜索本博客最近访客博客分类我的相册d2-gfw</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/5456535950757450962/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/50.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/5456535950757450962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/5456535950757450962'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/50.html' title='写对正则：一行代码，速度差50倍'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-6684167538032476155</id><published>2009-05-14T00:41:00.001-07:00</published><updated>2009-05-14T00:41:13.818-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>C#正则表达式快速入门</title><summary type='text'>作者将自己在学习正则表达式中的心得和笔记作了个总结性文章，希望对初学C#正则表达式的读者有帮助。[内容][正文]对于初学者看到类似“\w+@\w+\.\w{1,3}”这样复杂没有规律的字符，就会莫名产生一种恐惧感。其实正则表达式和字符串(String)的使用同样非常简单。下面让我们逐步地走进正则表达式的世界！什么是正则表达式正则表达式是用来检验和操作字符串的强大工具。简单的理解正则表达式可以认为是一种特殊的验证字符串。正则表达式常见运用是验证用户输入信息格式，比如上面的那组“\w{1,}@\w{1,}\.\w{1”，实际上就是验证邮件地址是否合法的；当然正则表达式不仅仅是用于验证，可以说只要运用字符串的地方都可以使用正则表达式；涉及的基本的类正则表达式在英文中写作（RegularExpression），根据正则表达式的使用范围和单词意思，.NET将其命名空间设置为</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/6684167538032476155/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/c_9543.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6684167538032476155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6684167538032476155'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/c_9543.html' title='C#正则表达式快速入门'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-2971631049494775625</id><published>2009-05-14T00:40:00.003-07:00</published><updated>2009-05-14T00:40:41.945-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>SQLite .net 正则 扩展 自定义函数</title><summary type='text'> using System.Data.SQLite;    [SQLiteFunction(Name = "RegExp", Arguments = 2, FuncType = FunctionType.Scalar)]       class RegExp : SQLiteFunctionEx    {      // 使用方法 : Select RegExp('[\d]','abcd1234')        public override object Invoke(object[] args)        {            return System.Text.RegularExpressions.Regex.IsMatch(Convert.ToString(args[1]), Convert.ToString(args[0]));        }    }</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/2971631049494775625/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/sqlite-net.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2971631049494775625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2971631049494775625'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/sqlite-net.html' title='SQLite .net 正则 扩展 自定义函数'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-7398040728529390873</id><published>2009-05-14T00:40:00.001-07:00</published><updated>2009-05-14T00:40:11.579-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>as3 正则表达式</title><summary type='text'>机器马Age:25Programer,BeiJing他强随他强,清风拂山岗;他横任他横,</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/7398040728529390873/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/as3_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/7398040728529390873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/7398040728529390873'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/as3_14.html' title='as3 正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-4026786055942206062</id><published>2009-05-14T00:39:00.003-07:00</published><updated>2009-05-14T00:39:39.996-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>sql处理特殊字符</title><summary type='text'>但这只是特殊字符的一个，在实际项目中，发现对于like操作还有以下特殊字符：下划线“_”，百分号“%”，方括号“[]”以及尖号“^”。其用途如下：下划线：用于代替一个任意字符（相当于正则表达式中的?）百分号：用于代替任意数目的任意字符（相当于正则表达式中的*）方括号：用于转义（事实上只有左方括号用于转义，右方括号使用最近优先原则匹配最近的左方括号）尖号：用于排除一些字符进行匹配（这个与正则表达式中的一样）以下是一些匹配的举例，需要说明的是，只有like操作才有这些特殊字符，=操作是没有的。a_b...a[_]b%a%b...a[%]b%a[b...a[[]b%a]b...a]b%a[]b...a[[]]b%a[^]b...a[[][^]]b%a[^^]b...a[[][^][^]]b%在实际进行处理的时候，对于=操作，我们一般只需要如此替换：'-''对于like操作，需要进行以下替换（</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/4026786055942206062/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/sql_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4026786055942206062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4026786055942206062'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/sql_14.html' title='sql处理特殊字符'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-1679061334878338933</id><published>2009-05-14T00:39:00.001-07:00</published><updated>2009-05-14T00:39:11.410-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>oracle 正则表达式（转）</title><summary type='text'>oracle的正则表达式(regularexpression)简单介绍目前，正则表达式已经在很多软件中得到广泛的应用，包括*nix（Linux,Unix等），HP等操作系统，PHP，C#，Java等开发环境。Oracle10g正则表达式提高了SQL灵活性。有效的解决了数据有效性，重复词的辨认,无关的空白检测，或者分解多个正则组成的字符串等问题。Oracle10g支持正则表达式的四个新函数分别是：REGEXP_LIKE、REGEXP_INSTR、REGEXP_SUBSTR、和REGEXP_REPLACE。它们使用POSIX正则表达式代替了老的百分号（%）和通配符（_）字符。特殊字符：'^'匹配输入字符串的开始位置，在方括号表达式中使用，此时它表示不接受该字符集合。'$'匹配输入字符串的结尾位置。如果设置了RegExp对象的Multiline属性，则$也匹配'n'或'r'。'.'匹配除换行符</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/1679061334878338933/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/oracle_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/1679061334878338933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/1679061334878338933'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/oracle_14.html' title='oracle 正则表达式（转）'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-4637959402770151801</id><published>2009-05-14T00:38:00.003-07:00</published><updated>2009-05-14T00:38:54.287-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则表达式</title><summary type='text'>&lt;&gt;  cx  匹配由x指明的控制字符。例如， cM 匹配一个          Control-M 或回车符。x 的值必须为 A-Z 或 a-z 之一。         否则，将 c 视为一个原义的 'c' 字符。        匹配一个换页符。等价于   和 cL。        匹配一个换行符。等价于   和 cJ。        匹配一个回车符。等价于   和 cM。     s  匹配任何空白字符，包括空格、制表符、换页符等等。        等价于 [  v]。     S  匹配任何非空白字符。等价于 [^  v]。        匹配一个制表符。等价于   和 cI。     v  匹配一个垂直制表符。等价于   和 cK。   正则表达式: 限制出现的次数 如果要限制某个字符出现的次数，可以使用限定符；   限定符 作用   ----------------------</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/4637959402770151801/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_4453.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4637959402770151801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4637959402770151801'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_4453.html' title='正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3893648487450441820</id><published>2009-05-14T00:38:00.001-07:00</published><updated>2009-05-14T00:38:16.595-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>JS技巧代码</title><summary type='text'>//过滤数字inputtype=textonkeypress=returnevent.keyCode=48event.keyCode=57||(this.value.indexOf(.')0?event.keyCode==46:false)onpaste=return!clipboardData.getData(text).match(/\D/)ondragenter=returnfalse//特殊用途inputtype=buttonvalue=导入收藏夹onclick=window.external.ImportExportFavorites(true,http://localhost);inputtype=buttonvalue=导出收藏夹onclick=window.external.ImportExportFavorites(false,http://localhost);</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3893648487450441820/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/js_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3893648487450441820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3893648487450441820'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/js_14.html' title='JS技巧代码'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-9007610135964213855</id><published>2009-05-14T00:37:00.003-07:00</published><updated>2009-05-14T00:37:40.677-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则表达式中文匹配</title><summary type='text'>匹配中文字符的正则表达式：[\u4e00-\u9fa5]评注：匹配中文还真是个头疼的事，有了这个表达式就好办了匹配双字节字符(包括汉字在内)：[^\x00-\xff]评注：可以用来计算字符串的长度（一个双字节字符长度计2，ASCII字符计1）匹配空白行的正则表达式：\n\s*\r评注：可以用来删除空白行匹配HTML标记的正则表达式：(\S*?)[^]*.*?/|.*?/评注：网上流传的版本太糟糕，上面这个也仅仅能匹配部分，对于复杂的嵌套标记依旧无能为力匹配首尾空白字符的正则表达式：^\s*|\s*$评注：可以用来删除行首行尾的空白字符(包括空格、制表符、换页符等等)，非常有用的表达式匹配Email地址的正则表达式：\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*评注：表单验证时很实用匹配网址URL的正则表达式：[a-zA-z]+://[^\s]*评注</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/9007610135964213855/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3249.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/9007610135964213855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/9007610135964213855'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3249.html' title='正则表达式中文匹配'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3874493958839106635</id><published>2009-05-14T00:37:00.001-07:00</published><updated>2009-05-14T00:37:10.823-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>Java正则与栈溢出</title><summary type='text'>开始以为是文件太长，将文件减短后还是会有问题，觉得应该是java内置的正则的问题，网上Google了一下，遇到这个问题的人多了去了。java内置的正则解析器有问题，不过可以绕过去。有两个较好用的库，这两个库都不会发生StackOverFlowerError。pattwo：jregex：另有一篇参考文档：评论发表评论您还没有登录，请登录后发表评论(快捷键Alt+S/Ctrl+Enter)daimojingdeyu搜索本博客最近访客博客分类其他分类最近加入圈子存档最新评论评论排行榜声明：JavaEye文章版权属于作者，受法律保护。没有作者书面许可不得转载。若作者同意转载，必须以超链接形式标明文章原始出处和作者。</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3874493958839106635/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/java_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3874493958839106635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3874493958839106635'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/java_14.html' title='Java正则与栈溢出'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-2700098627289802384</id><published>2009-05-14T00:36:00.003-07:00</published><updated>2009-05-14T00:36:39.830-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>TP正则表达式的问题求教。</title><summary type='text'>注册日期:2007-04-11帖子:1,556引用:作者:朔风飞扬先源文件A操作“删除重复行”，得到一个新文件B；A-B得到C；B-C得到你要的结果D。我猜的，不知道对不对。当然这只是举的例。没错。不过，280多万行的词库相减，cnbook和TP太慢，甚至崩溃。用黄伟等工具，又不支持UTF-16LE字符啊。ABCD挖苦的。怎么删除：完全相同的行。即：下面两条全部删除：czcbq=沉舟侧畔千帆过病树前头万木春czcbq=沉舟侧畔千帆过病树前头万木春原因：我的词库里有：czcbq=沉舟侧畔千帆过,病树前头万木春czcbq=沉舟侧畔千帆过病树前头万木春两句中我要的是：czcbq=沉舟侧畔千帆过,病树前头万木春解决的办法是：1、用TP把所有的带标点符号的词条提出来。2、然后删除词库中所有的标点符号。3、删除所有相同的行。4、把已经提出来的带标点符号的词条放入词库。这样，我就把“czcbq=</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/2700098627289802384/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/tp.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2700098627289802384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2700098627289802384'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/tp.html' title='TP正则表达式的问题求教。'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3920358877130021503</id><published>2009-05-14T00:36:00.001-07:00</published><updated>2009-05-14T00:36:20.430-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>学习如何在.NET中使用正则表达式(1)</title><summary type='text'>学习正则表达式的最好方法是从例子开始，理解例子之后再自己对例子进行修改，实验。下面给出了不少简单的例子，并对它们作了详细的说明。假设你在一篇英文小说里查找hi，你可以使用正则正则表达式hi。这是最简单的正则表达式了，它可以精确匹配这样的字符串：由两个字符组成，前一个字符是h,后一个是i。通常，处理正则表达式的工具会提供一个忽略大小写的选项，如果选中了这个选项，它可以匹配hi,HI,Hi,hI这四种情况中的任意一种。不幸的是，很多单词里包含hi这两个连续的字符，比如him,history,high等等。用hi来查找的话，这里边的hi也会被找出来。如果要精确地查找hi这个单词的话，我们应该使用\bhi\b。\b是正则表达式规定的一个特殊代码（好吧，某些人叫它元字符，metacharacter），代表着单词的开头或结尾，也就是单词的分界处。虽然通常英文的单词是由空格或标点符号或换行来分隔的，</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3920358877130021503/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/net1.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3920358877130021503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3920358877130021503'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/net1.html' title='学习如何在.NET中使用正则表达式(1)'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-4305089561394674574</id><published>2009-05-14T00:35:00.001-07:00</published><updated>2009-05-14T00:35:10.073-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则的反斜杠问题</title><summary type='text'>在拆分字符串时我希望通过\来拆分，可是用\\来拆分的时候遇到Exceptioninthread"main"java.util.regex.PatternSyntaxException:Unexpectedinternalerrornearindex1\错误，后来用\\\\来匹配就没有问题了。附上测试代码：importjava.util.Arrays;importjava.util.regex.Pattern;/***正则的反斜杠问题*本类是测试根据给定\拆分字符串*/publicclassTest{publicstaticvoidmain(String[]args){Stringsina="http:\\\\www.sina.com\\sports";System.out.println(sina);/***正则表达式需要转义用\\表示\;*而java的源代码里，字符串中需要转义用\\</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/4305089561394674574/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_6208.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4305089561394674574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4305089561394674574'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_6208.html' title='正则的反斜杠问题'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8655670800894618921</id><published>2009-05-14T00:34:00.003-07:00</published><updated>2009-05-14T00:34:44.677-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>JavaScript正则表达式</title><summary type='text'>很久没用还真忘了很多东西。放上一个验证日期YYYY-MM-DDhh:mm的表达式//判断日期类型functionisDate(str){varreg=/^[1-9][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1|2]\d|3[0|1])\s(0\d|1\d|2[0-3]):(0\d|[1-5]\d)$/if(reg.exec(str))returntrue;returnfalse;}functioncheckData(){if(!isDate(document.getElementById("ktime1").value)){alert("请输入正确的停电开始时间日期格式！例如：2000-01-0100:00");returnfalse;}}这个是公司框架提供的公用JS//长时间，形如(2003-12-0513:04)functionstrCheckTime(</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8655670800894618921/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/javascript_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8655670800894618921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8655670800894618921'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/javascript_14.html' title='JavaScript正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3335013259919839224</id><published>2009-05-14T00:34:00.001-07:00</published><updated>2009-05-14T00:34:10.160-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>C#正则表达式小结（转载）</title><summary type='text'>C#正则表达式小结（转载） 只能输入数字："^[0-9]*$"。只能输入n位的数字："^\d{n}$"。只能输入至少n位的数字："^\d{n,}$"。只能输入m~n位的数字：。"^\d{m,n}$"只能输入零和非零开头的数字："^(0|[1-9][0-9]*)$"。只能输入有两位小数的正实数："^[0-9]+(.[0-9]{2})?$"。只能输入有1~3位小数的正实数："^[0-9]+(.[0-9]{1,3})?$"。只能输入非零的正整数："^\+?[1-9][0-9]*$"。只能输入非零的负整数："^\-[1-9][]0-9"*$。只能输入长度为3的字符："^.{3}$"。只能输入由26个英文字母组成的字符串："^[A-Za-z]+$"。只能输入由26个大写英文字母组成的字符串："^[A-Z]+$"。只能输入由26个小写英文字母组成的字符串："^[a-z]+$"。只能输入由数字和26</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3335013259919839224/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/c_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3335013259919839224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3335013259919839224'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/c_14.html' title='C#正则表达式小结（转载）'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-2630514880830038588</id><published>2009-05-14T00:33:00.003-07:00</published><updated>2009-05-14T00:33:42.359-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>常用正则表达式</title><summary type='text'>只能输入n位的数字："^\d{n}$"。只能输入至少n位的数字："^\d{n,}$"。只能输入m~n位的数字：。"^\d{m,n}$"只能输入零和非零开头的数字："^(0|[1-9][0-9]*)$"。只能输入有两位小数的正实数："^[0-9]+(.[0-9]{2})?$"。只能输入有1~3位小数的正实数："^[0-9]+(.[0-9]{1,3})?$"。只能输入非零的正整数："^\+?[1-9][0-9]*$"。只能输入非零的负整数："^\-[1-9][]0-9"*$。只能输入长度为3的字符："^.{3}$"。只能输入由26个英文字母组成的字符串："^[A-Za-z]+$"。只能输入由26个大写英文字母组成的字符串："^[A-Z]+$"。只能输入由26个小写英文字母组成的字符串："^[a-z]+$"。只能输入由数字和26个英文字母组成的字符串："^[A-Za-z0-9]+$"。</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/2630514880830038588/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_347.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2630514880830038588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2630514880830038588'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_347.html' title='常用正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-2198742683882010879</id><published>2009-05-14T00:33:00.001-07:00</published><updated>2009-05-14T00:33:12.556-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则表达式学习(上)</title><summary type='text'>最重要的是请给我30分钟如果你没有使用正则表达式的经验请不要试图在30秒内入门除非你是超人:)别被下面那些复杂的表达式吓倒只要跟着我一步一步来你会发现正则表达式其实并没有你想像中的那么困难当然如果你看完了这篇教程之后发现自己明白了很多却又几乎什么都记不得那也是很正常的我认为没接触过正则表达式的人在看完这篇教程后能把提到过的语法记住80%以上的可能性为零这里只是让你明白基本的原理以后你还需要多练习多使用才能熟练掌握正则表达式除了作为入门教程之外本文还试图成为可以在日常工作中使用的正则表达式语法参考手册就作者本人的经历来说这个目标还是完成得不错的你看我自己也没能把所有的东西记下来不是吗清除格式文本格式约定专业术语元字符/语法格式正则表达式正则表达式中的一部分(用于分析)</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/2198742683882010879/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_2701.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2198742683882010879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2198742683882010879'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_2701.html' title='正则表达式学习(上)'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-5484326890492564110</id><published>2009-05-14T00:32:00.003-07:00</published><updated>2009-05-14T00:32:54.011-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则表达式介绍及一般运用</title><summary type='text'>正则表达式（regular expression）在计算机科学中，是指一个用来描述或者匹配一系列符合某个句法规则的字符串的单个字符串。在很多文本编辑器或其他工具里，正则表达式通常被用来检索和/或替换那些符合某个模式的文本内容。许多程序设计语言都支持利用正则表达式进行字符串操作。“正则表达式”通常缩写成“regex”。  一. 基本概念：一个正则表达式通常被称为一个模式 (pattern)，为用来描述或者匹配一系列符合某个句法规则的字符串。例如：cut、cat 和 cit 这三个字符串，都可以由 "c(u|a|i)t" 这个模式来描述。大部分正则表达式的形式都有如下的结构：替换 "|"   : 竖直分隔符代表替换。例如"gray|grey"可以匹配grey或gray。 数量限定   :  某个字符后的数量限定符用来限定前面这个字符允许出现的个数。最常见的数量限定符包括   “+”，“?”和</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/5484326890492564110/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_97.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/5484326890492564110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/5484326890492564110'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_97.html' title='正则表达式介绍及一般运用'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-630681800769632819</id><published>2009-05-14T00:32:00.001-07:00</published><updated>2009-05-14T00:32:09.266-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>在VC6中使用正则表达式解析字符串</title><summary type='text'>在VC6中使用正则表达式解析字符串http://www.blogjava.net/Unmi/archive/2007/06/24/125960.html GRETA正则表达式模板类库http://www.vckbase.com/document/viewdoc/?id=1138</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/630681800769632819/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/vc6.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/630681800769632819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/630681800769632819'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/vc6.html' title='在VC6中使用正则表达式解析字符串'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-5770213199102062526</id><published>2009-05-14T00:31:00.001-07:00</published><updated>2009-05-14T00:31:59.281-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则口诀</title><summary type='text'>正则其实也势利，削尖头来把钱揣； （指开始符号^和结尾符号$） 特殊符号认不了，弄个倒杠来引路； （指\. \*等特殊符号） 倒杠后面跟小w， 数字字母来表示； （\w跟数字字母;\d跟数字） 倒杠后面跟小d， 只有数字来表示； 倒杠后面跟小a， 报警符号嘀一声； 倒杠后面跟小b， 单词分界或退格； 倒杠后面跟小t， 制表符号很明了； 倒杠后面跟小r， 回车符号知道了； 倒杠后面跟小s， 空格符号很重要； 小写跟罢跟大写，多得实在不得了； 倒杠后面跟大W， 字母数字靠边站； 倒杠后面跟大S， 空白也就靠边站； 倒杠后面跟大D， 数字从此靠边站； 倒框后面跟大B， 不含开头和结尾； 单个字符要重复，三个符号来帮忙； （* + ？） 0 星加1 到无穷，问号只管0 和1； （*表0-n;+表1-n;?表0-1次重复） 花括号里学问多，重复操作能力强； （{n} {n,} {n,m}） </summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/5770213199102062526/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_14.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/5770213199102062526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/5770213199102062526'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_14.html' title='正则口诀'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-6728261133728858171</id><published>2009-05-13T02:37:00.001-07:00</published><updated>2009-05-13T02:37:21.757-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>雷人的 IE6 JS 报错</title><summary type='text'>不可思议，错误居然出在第一亿多行，而且每次刷新都不一样已投稿到：阅读||||前一篇：评论[发评论]发评论验证码：发评论</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/6728261133728858171/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/ie6-js.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6728261133728858171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6728261133728858171'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/ie6-js.html' title='雷人的 IE6 JS 报错'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8119500138558847541</id><published>2009-05-13T02:36:00.003-07:00</published><updated>2009-05-13T02:36:51.634-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>Shell的一些胡乱总结</title><summary type='text'>$-Shell值比较-eq数值相等。-ne数值不相等。-gt第一个数大于第二个数。-lt第一个数小于第二个数。-le第一个数小于等于第二个数。-ge第一个数大于等于第二个数。$-反向读取文件流Usingtaccommands$-重命名文件1.mvab不保留原来的文件2.cpab保留原来的文件$-读取文件操作操作:echo"a"test.txtecho""test.txtecho"b"test.txt循环读取文件:cattest.txt|whilereadlinedoecho$linedone只读取文件中的某一行:sed-n'1p'text.txt读第一行数据.用set获取读取的数据seta=`sed-n'1p'test.txt`(或:set`sed-n'1p'text.txt`)echo$1但是当读取一个空行的时候，不太适用.如:set`sed-n'2p'test.txt`第二行为空行.</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8119500138558847541/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/shell_13.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8119500138558847541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8119500138558847541'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/shell_13.html' title='Shell的一些胡乱总结'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-4051554546670467558</id><published>2009-05-13T02:36:00.001-07:00</published><updated>2009-05-13T02:36:21.317-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>书法</title><summary type='text'>病梅馆记[清]龚自珍江宁之龙蟠，苏州之邓尉，杭州之西溪，皆产梅。或曰：“梅以曲为美，直则无姿；以欹为美，正则无景；以疏为美，密则无态。”固也。此文人画士，心知其意，未可明诏大号以绳天下之梅也；又不可以使天下之民斫直，删密，锄正，以夭梅病梅为业以求钱也。梅之欹之疏之曲，又非蠢蠢求钱之民能以其智力为也。有以文人画士孤癖之隐明告鬻梅者，斫其正，养其旁条，删其密，夭其稚枝，锄其直，遏其生气，以求重价，而江浙之梅皆病。文人画士之祸之烈至此哉！予购三百盆，皆病者，无一完者。既泣之三日，乃誓疗之：纵之顺之，毁其盆，悉埋于地，解其棕缚；以五年为期，必复之全之。予本非文人画士，甘受诟厉，辟病梅之馆以贮之。呜呼！安得使予多暇日，又多闲田，以广贮江宁、杭州、苏州之病梅，穷予生之光阴以疗梅也哉！译文江宁的龙蟠里，苏州的邓尉山，杭州的西溪，都出产梅花。有人说："梅以枝干弯曲为美，笔直了就没有风姿；以枝干横斜为美，</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/4051554546670467558/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_4312.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4051554546670467558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4051554546670467558'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_4312.html' title='书法'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3838229043776581172</id><published>2009-05-13T02:35:00.003-07:00</published><updated>2009-05-13T02:35:51.662-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>每日金评 黄金分析5.12（二）</title><summary type='text'>由于内容较多所以分成两篇发，今日分析在第一篇请关注。今日关注数据时间事件重要性前值市场预测结果05-1207:01英国4月BRC同店零售销售年率低-1.2%4.6%05-1207:01英国4月BRC总体零售销售年率低0.6%6.3%05-1209:30澳大利亚3月房屋贷款月率低0.4%4.5%4.9%05-1209:30澳大利亚3月房屋贷款年率低-8.5%-2.7%-2.7%05-1209:30澳大利亚3月投资者贷款月率低-2.8%-1.0%4.7%05-1209:30澳大利亚3月投资者贷款年率低-27.5%-21.6%-21.6%05-1213:00日本3月经济领先指标初值低75.077侦查中05-1213:00日本3月经济同步指标初值低86.085.8侦查中05-1214:00德国4月消费者物价指数月率终值高0.0%-0.1%侦查中通过衡量消费品物价变动来评估生活成本。消费者物价指数</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3838229043776581172/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/512.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3838229043776581172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3838229043776581172'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/512.html' title='每日金评 黄金分析5.12（二）'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-7923160467744030236</id><published>2009-05-13T02:35:00.001-07:00</published><updated>2009-05-13T02:35:22.157-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>[转载]VB6.0如何使用正则表达式</title><summary type='text'>引用了MicrosoftVBScriptRegularExpressions5.5后就可以声明正则相关对象了。主要有三个对象：RegExp、MatchCollection、Match。1.RegExp这是VB使用正则表达式匹配模式的主要对象了。其提供的属性用于设置那些用来比较的传递给RegExp实例的字符串的模式。其提供的方法以确定字符串是否与正则表达式的特定模式相匹配。属性：Pattern：一个字符串，用来定义正则表达式。IgnoreCase：一个布尔值属性，指示是否必须对一个字符串中的所有可能的匹配进行正则表达式测试。这是MS的解释，有点费解，实际使用中的实例是，如果True，则忽略英文字母大小的匹配，False对大小写进行匹配。Global：设置一个布尔值或返回一个布尔值，该布尔值指示一个模式是必须匹配整个搜索字符串中的所有搜索项还是只匹配第一个搜索项。MultiLine：这个MS</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/7923160467744030236/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/vb60.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/7923160467744030236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/7923160467744030236'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/vb60.html' title='[转载]VB6.0如何使用正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3537099109479783635</id><published>2009-05-13T02:34:00.003-07:00</published><updated>2009-05-13T02:34:51.855-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>PHP新手上路（十四）</title><summary type='text'>其他杂项13.1生成图像PHP可以操作处理图像。如果你已经安装了GD库，你甚至可以利用PHP生成图像。?Header(Content-type:image/gif);$string=implode($argv,);$im=imagecreatefromgif(images/button1.gif);$orange=ImageColorAllocate($im,220,210,60);$px=(imagesx($im)-7.5*strlen($string))/2;ImageString($im,3,$px,9,$string,$orange);ImageGif($im);ImageDestroy($im);?（译者注：以上代码段缺少注释，请读者参考PHPManual的图像处理函数部分）这段代码在其他页面中通过以下标记imgsrc=button.php3?text调用，然后以上的那段</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3537099109479783635/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/php_13.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3537099109479783635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3537099109479783635'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/php_13.html' title='PHP新手上路（十四）'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-4624700017718669870</id><published>2009-05-13T02:34:00.001-07:00</published><updated>2009-05-13T02:34:22.322-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>分类信息网站防范垃圾信息的四个有效方法</title><summary type='text'>核心提示：纵观分类信息网站，垃圾信息充斥其中。垃圾信息大大的降低了用户体验，如果一个网站充斥了垃圾信息，那么用户对它的信任度会大大的降低。最近几天百度和Google口水战打得很凶，百度把搜索不公正归于垃圾信息，而Google则反唇相讥，说靠机器、技术手段来反垃圾已经成为通行法则，百度的说法仅仅是一个借口而已。不管谁对谁错，一个不争的事实是垃圾信息已经成为如今的信息时代的公敌。记得还在去年的时候，赶集和58的二手车栏目充斥着异地的走私车的信息，现在这些垃圾信息基本没有了，其他栏目的垃圾信息的比例也大大的降低了。但是除了这些商业型的分类信息网站，其他的很多分类信息网站中的垃圾信息依然很多。在这里，本人愿意与各大分类信息网站的站长们分析下反垃圾技术及心得。这些方法简单易行，对于一个熟悉编程的站长来说是比较容易实现的。实践证明，通过这些方法，列表网能够很好的将垃圾信息控制在一个可以接受的范围之内</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/4624700017718669870/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_6368.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4624700017718669870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4624700017718669870'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_6368.html' title='分类信息网站防范垃圾信息的四个有效方法'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-4914955803393553372</id><published>2009-05-13T02:33:00.003-07:00</published><updated>2009-05-13T02:33:51.972-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>习赵堡郑悟清拳法（赵堡小架）的体会</title><summary type='text'>无极而太极者谓之道。道无根无茎无叶无荣，万物以生，万物以成。道者口不能言，目不能视，耳不能听。至无而生天地，天轴不移，含气不亏。地静东流不辍兴云不竭。所以静为天地之心，动为天地之气，心静气动，覆载而不极。通理者宇宙之外而心常宁，虽休息豪厘之内而气自运。心不宁不能明理，气不运则无形，形存道同，天地自然之理。动静无方，学则有序，皆以静为宗，精思为用，慈惠为先。故不以至静则神不凝，非精思则神不彻，非慈惠则功不成。道不欲有心，有心则真气不集，客邪来舍，如能平和恬淡澄清，精微，虚明合元，有感必应，应而勿取，真伪斯分。故心正则物无不正。道本无事无为，人尚有事有为，道本无情无欲，人尚有欲有情。故俗与道反，反经，常也，义者，宜也，贵以贱为本，高以下为基，有以无为用，反常情而后顺合于道，故以此谓之运动。主于静而立人极，静者非不动，通韦云：“动无静物也。”动中之静者真静，动中有静，静中有动，变化之机生。</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/4914955803393553372/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_6164.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4914955803393553372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4914955803393553372'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_6164.html' title='习赵堡郑悟清拳法（赵堡小架）的体会'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-2414437923370376020</id><published>2009-05-13T02:33:00.001-07:00</published><updated>2009-05-13T02:33:21.735-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>分类信息网站防范垃圾信息的四个有效方法</title><summary type='text'>核心提示：纵观分类信息网站，垃圾信息充斥其中。垃圾信息大大的降低了用户体验，如果一个网站充斥了垃圾信息，那么用户对它的信任度会大大的降低。最近几天百度和Google口水战打得很凶，百度把搜索不公正归于垃圾信息，而Google则反唇相讥，说靠机器、技术手段来反垃圾已经成为通行法则，百度的说法仅仅是一个借口而已。不管谁对谁错，一个不争的事实是垃圾信息已经成为如今的信息时代的公敌。记得还在去年的时候，赶集和58的二手车栏目充斥着异地的走私车的信息，现在这些垃圾信息基本没有了，其他栏目的垃圾信息的比例也大大的降低了。但是除了这些商业型的分类信息网站，其他的很多分类信息网站中的垃圾信息依然很多。在这里，本人愿意与各大分类信息网站的站长们分析下反垃圾技术及心得。这些方法简单易行，对于一个熟悉编程的站长来说是比较容易实现的。实践证明，通过这些方法，列表网能够很好的将垃圾信息控制在一个可以接受的范围之内</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/2414437923370376020/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_2061.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2414437923370376020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2414437923370376020'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_2061.html' title='分类信息网站防范垃圾信息的四个有效方法'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-9114898680475199258</id><published>2009-05-13T02:32:00.003-07:00</published><updated>2009-05-13T02:32:51.469-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>习赵堡郑悟清拳法（赵堡小架）的体会</title><summary type='text'>无极而太极者谓之道。道无根无茎无叶无荣，万物以生，万物以成。道者口不能言，目不能视，耳不能听。至无而生天地，天轴不移，含气不亏。地静东流不辍兴云不竭。所以静为天地之心，动为天地之气，心静气动，覆载而不极。通理者宇宙之外而心常宁，虽休息豪厘之内而气自运。心不宁不能明理，气不运则无形，形存道同，天地自然之理。动静无方，学则有序，皆以静为宗，精思为用，慈惠为先。故不以至静则神不凝，非精思则神不彻，非慈惠则功不成。道不欲有心，有心则真气不集，客邪来舍，如能平和恬淡澄清，精微，虚明合元，有感必应，应而勿取，真伪斯分。故心正则物无不正。道本无事无为，人尚有事有为，道本无情无欲，人尚有欲有情。故俗与道反，反经，常也，义者，宜也，贵以贱为本，高以下为基，有以无为用，反常情而后顺合于道，故以此谓之运动。主于静而立人极，静者非不动，通韦云：“动无静物也。”动中之静者真静，动中有静，静中有动，变化之机生。</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/9114898680475199258/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_2771.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/9114898680475199258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/9114898680475199258'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_2771.html' title='习赵堡郑悟清拳法（赵堡小架）的体会'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8859243863746817879</id><published>2009-05-13T02:32:00.001-07:00</published><updated>2009-05-13T02:32:21.294-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>Delphi2009中安装正则表达式TPerlRegEx的方法</title><summary type='text'>官方网站:http://www.regular-expressions.info/delphi.html直接下载:http://www.regular-expressions.info/download/TPerlRegEx.zip安装方法:1、先把解压的TPerlRegEx文件夹放一个合适的地方,我放在了Delphi的Imports目录中.2、目前最新ForWin32的版本是对Delphi2006的,2007也能用.打开PerlRegExD2006.dpk,提示缺少资源文件,没关系;在ProjectManager窗口中的PerlRegExD2006.bpl上点击右键,执行Install;这时在ToolPalette的列表中已经有了TPerlRegEx,在JGsoft组.3、</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8859243863746817879/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/delphi2009tperlregex_13.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8859243863746817879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8859243863746817879'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/delphi2009tperlregex_13.html' title='Delphi2009中安装正则表达式TPerlRegEx的方法'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8647356219673804163</id><published>2009-05-13T02:31:00.001-07:00</published><updated>2009-05-13T02:31:55.905-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>名正则言顺</title><summary type='text'>名正则言顺——也读《论语》之二十二孔夫子说：“名不正，则言不顺；言不顺，则事不成；事不成，则礼乐不兴；礼乐不兴则刑罚不中；刑罚不中，则民无所错手足。”“君子名之必可言也，言之必可行也”，“君子于其言，无所苟而已矣。”</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8647356219673804163/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_2368.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8647356219673804163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8647356219673804163'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_2368.html' title='名正则言顺'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-1272150476964019955</id><published>2009-05-12T21:54:00.003-07:00</published><updated>2009-05-12T21:54:50.046-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>JavaScript中Date对象使用总结</title><summary type='text'>//全局函数Date //Date 类的静态方法Date.parseDate.UTC //Date 对象的建立方法new Date()new Date(毫秒数)new Date(标准时间格式字符串)new Date(年, 月, 日, 时, 分, 秒, 毫秒) //Date 对象的更多方法getFullYear      (getUTCFullYear)getMonth         (getUTCMonth)getDate          (getUTCDate)getDay           (getUTCDay)getHours         (getUTCHours)getMinutes       (getUTCMinutes)getSeconds       (getUTCSeconds)getMilliseconds  (getUTCMilliseconds)</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/1272150476964019955/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/javascriptdate.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/1272150476964019955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/1272150476964019955'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/javascriptdate.html' title='JavaScript中Date对象使用总结'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8822998185076120222</id><published>2009-05-12T21:54:00.001-07:00</published><updated>2009-05-12T21:54:09.522-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>生成随机数</title><summary type='text'>/// &lt;summary&gt;        /// 生成0-9随机数        /// &lt;/summary&gt;        /// &lt;param name="VcodeNum"&gt;生成长度&lt;/param&gt;        /// &lt;returns&gt;&lt;/returns&gt;        public static string RndNum(int VcodeNum)        {            StringBuilder sb = new StringBuilder(VcodeNum);            Random rand = new Random();            for (int i = 1; i &lt; VcodeNum + 1; i++)            {                int t = rand.Next(9);</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8822998185076120222/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3405.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8822998185076120222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8822998185076120222'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3405.html' title='生成随机数'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-4783637492353102473</id><published>2009-05-12T21:53:00.001-07:00</published><updated>2009-05-12T21:53:39.635-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>background属性 设置有感</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 http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;&lt;title&gt;无标题文档&lt;/title&gt;&lt;style&gt;.abc{ background:url(1.jpg) -99px（left 坐标为负） -44px( top 坐标); /* 注意：background-image不行*/  width:500px; /* 注意：需要多宽 引用多宽，否则会重复*/  </summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/4783637492353102473/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/background.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4783637492353102473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4783637492353102473'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/background.html' title='background属性 设置有感'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3120362277214971738</id><published>2009-05-12T21:51:00.003-07:00</published><updated>2009-05-12T21:51:39.782-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>关于“静能生慧”</title><summary type='text'>静能生慧:在平静安逸之中增长智慧佛家语:"灵台清静，静能生慧，慧能生智。”道家也说"静能生定,定能生慧."儒家亦认为“静能生慧”。《昭德新编》说：“水静极则形象明，心静极则智慧生。”《延乎答问录》：“盖心下热闹，如何看得道路出？须是静，方看得出。所谓静坐，只是打叠得心下无事，则道理始出。道理即出则心下愈明静矣。”《素问·上古天真论》指出：“恬淡虚无，真气从之，精神内守，病安从来？”陶弘景说：“静者寿，躁者夭，静而不能养，减寿；躁而能养，延年。”总之,儒家、佛家、道家都认为,“静能生慧”,“静能开悟”,“静能正道”.佛陀把智慧分为三种——“闻慧、思慧、修慧”，最关键的是修慧。通过修习内观可以获得智慧戒、定、慧，是佛陀留给众生的教诲。也是引向顿悟的一条捷径。要拒绝引诱，不再过份专注於外物，心才会达到静定，这就是戒的意义。心清静、意清静，智慧即会涌现。后来有人把'静能生慧,宁静致远"合为一句.</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3120362277214971738/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_1048.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3120362277214971738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3120362277214971738'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_1048.html' title='关于“静能生慧”'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-957328389687905849</id><published>2009-05-12T21:51:00.001-07:00</published><updated>2009-05-12T21:51:09.549-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>小石头软件 » Java：正则表达式</title><summary type='text'>正则表达式适用范围非常广泛，只要涉及到文本编辑，几乎都有用武之地。在Java中，这样一个小例子：12345Stringstr=\\sss\\;Stringstr1=str.replace\\,_;Stringstr2=str.replaceAll\\\\,_;System.out.printlnstr1;System.out.printlnstr2;上面两个替换的结果都是“_sss_”，但原理上略有区别。relace()方法使用的是普通的字符替换，replaceAll()方法使用的是正则表达式替换。这可以从两者的第一个参数的差异看出来：分析一下“\\\\”，第一个反斜杠是转义符，第二个反斜杠是反斜杠本身，第三个反斜杠是转义符，第四个反斜杠是反斜杠本身。有两点要清楚：这样就比较好解释：</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/957328389687905849/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/java_12.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/957328389687905849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/957328389687905849'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/java_12.html' title='小石头软件 &amp;raquo; Java：正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-6140203184937298447</id><published>2009-05-12T21:50:00.003-07:00</published><updated>2009-05-12T21:50:39.680-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>JS一篇文章,我就看了第一篇就觉得很NUMBER,很OHYEAH4</title><summary type='text'>隐式的除了显式的调用之外，JavaScript中的有些function能接受字符形式的JavaScript代码并执行，这相当于隐式的调用了。这些function的典型代表是setTimeout和setInterval。具体请见代码清单7。由于的性能比较差，所以在使用setTimeout和setInterval等function的时候，最好传入function的引用，而不是字符串。清单7.隐式的示例varobj={show1:function(){alert("时间到！");},show2:function(){alert("10秒一次的提醒！");};};setTimeout(obj.show1,1000);setTimeout("obj.show1();",2000);setInterval(obj.show2,10000);setInterval("obj.show2();",</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/6140203184937298447/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/jsnumberohyeah4.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6140203184937298447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6140203184937298447'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/jsnumberohyeah4.html' title='JS一篇文章,我就看了第一篇就觉得很NUMBER,很OHYEAH4'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3095303411567933664</id><published>2009-05-12T21:50:00.001-07:00</published><updated>2009-05-12T21:50:09.842-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>谁熟悉这里面的全部这些名词？</title><summary type='text'>谁熟悉这里面的全部这些名词？  尤其是后半截，小弟越看越觉得计算机编程这行累！    任职要求：   A． 基本要求   1. 熟练使用C#2.0或者3.0；   2. 精通ADO.NET；   3. 精通ASP.NET；   4. 熟悉基于.NET的WinForm客户端编程；   5. 精通SQL，熟悉SQL 2005或者Oracle 10G数据库；   6. 熟悉XML技术及其应用；   7. 熟悉Web Service技术；   8. 富有团队合作精神，有上进心，追求进步；     B． 高级要求   1. 熟悉AJAX技术，熟悉JavaScript和css；   2. 有sql server 2005 BI或基于.NET的报表开发经验；   3. 熟悉正则表达式，线程编程，互操作等编程或.NET语言特性；   4. 了解微软最新企业级开发技术，例如.NET3.5(WCF，WWF，</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3095303411567933664/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3372.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3095303411567933664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3095303411567933664'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3372.html' title='谁熟悉这里面的全部这些名词？'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8279114145806049545</id><published>2009-05-12T21:49:00.003-07:00</published><updated>2009-05-12T21:49:39.937-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>心情小语100句</title><summary type='text'>001心美，看什麼都顺眼。002福，来自一颗懂得布施的心。003讲话要温和轻柔，态度要谦诚亲切。004孝顺要及时，行善也要及时。005站在半路，比走到目标，更辛苦。006多原谅别人，多得福；把量放大，福气大。007心中有爱，才会人见人爱。008幸福不在得到多，而在计较少。009把握当下，就是用心。010待人退一步，爱人宽一步，在人生道中就会活得很快乐。011要得到别人讚嘆，就得先讚嘆别人。012最有力量的菩萨，就是我们的手脑。013不断发挥生命功能，才是活著的人生。014听到好话，要如海绵遇水，牢牢吸住。015不要总是要求别人给我什麼，要想我能为别人做什麼。016帮助别人，其实就是在帮助自己。017不要只看到别人外在的污点，却看不到自己内心的垃圾。018生活有朝气，活得畅畅快快，工作讲求效率，做得踏踏实实。019以爱心待人，以磊落的心胸接物，则人生到处充满了真善美。020稻穗结得越饱满，</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8279114145806049545/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/100_12.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8279114145806049545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8279114145806049545'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/100_12.html' title='心情小语100句'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-7291921994851176211</id><published>2009-05-12T21:49:00.001-07:00</published><updated>2009-05-12T21:49:09.591-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>曹秀——我读王荐艺术散打集</title><summary type='text'>我读王荐艺术散打集曹秀原创|2009-4-1312:29|阅读:26本文已获编辑推荐点击：26关键字：文学我读王荐艺术散打集曹秀到文联办事，王荐送我一本书，我并没在意。回来后，我着重看了看，原来又是王荐出版的新著《放斋放言》，副标题就是王荐艺术散打集。我惊喜，这老弟速度真快，前一本书送我尚未消化得了，他又是一本，真让我对他刮目相看。放下手头写作，我仔细读着，我发现印刷挺美，设计也有特点，与其他书籍不一样。首先说是文章篇幅长了，不像以前的诗集都是短句，现在有的文章几乎超出万字，这样的篇幅对王荐来说也是顺手牵羊。在文联工作，随便写出一篇文章是轻而易举，然而读起来才知并不是想像的那样，有的文章也让我思索再三。比如，这本书里的绝大多数文章是写书法家或评论书法家作品的，这是最大的特点，而且具有专业性。王荐写字时间比较长，接触书法家也多，因此他的评论也是恰如其分。王荐是很谦虚的，</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/7291921994851176211/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_6204.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/7291921994851176211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/7291921994851176211'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_6204.html' title='曹秀——我读王荐艺术散打集'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-6364392949311311485</id><published>2009-05-12T21:48:00.003-07:00</published><updated>2009-05-12T21:48:39.673-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>少儿书法教学理念</title><summary type='text'>少儿书法教学理念一、重视学生的“双姿”，养成良好的书写习惯正确的书写坐姿和执笔姿势是学生写好字的前提。正确的写字姿势不仅能保证书写自如，减轻疲劳，提高书写水平，而且还能促进少年儿童身体的正常发育。执笔正确与否，关系到笔的控制能力，运笔的灵活性，书写的速度，直接影响书写效果。良好的执笔方法必须从小培养，否则，一旦形成错误习惯，纠正起来就很难。因此，从学生学习书法的第一天起，就必须强调坐势的“三个一”以及正确的执笔方式。在学习过程中，要时时提醒、不断纠正，让学生有深刻的记忆，养成提笔不忘正确“双姿”的好习惯。二、注重处理好技能与审美的关系书法是重技能的，在教学中除了要精讲字的点画结构特点，书写法则之外，还让学生在练习中总结出汉字的结构规律，但书法教学是属于审美教育的范畴，让学生懂得书法美，在练习中提高审美能力，才是书法教学的根本。在教学中必须要揭示汉字内在美育因素，点画的轻重，墨色的浓淡，</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/6364392949311311485/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_2908.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6364392949311311485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6364392949311311485'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_2908.html' title='少儿书法教学理念'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3232884348413856655</id><published>2009-05-12T21:48:00.001-07:00</published><updated>2009-05-12T21:48:09.976-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>SQL注入技术和跨站脚本攻击的检测</title><summary type='text'>在最近两年中，安全专家应该对网络应用层的攻击更加重视。因为无论你有多强壮的防火墙规则设置或者非常勤于补漏的修补机制，如果你的网络应用程序开发者没有遵循安全代码进行开发，攻击者将通过80端口进入你的系统。广泛被使用的两个主要攻击技术是SQL注入[ref1]和CSS[ref2]攻击。SQL注入是指：通过互联网的输入区域，插入SQLmeta-characters（特殊字符代表一些数据）和指令，操纵执行后端的SQL查询的技术。这些攻击主要针对其他组织的WEB服务器。CSS攻击通过在URL里插入script标签，然后诱导信任它们的用户点击它们，确保恶意Javascript代码在受害人的机器上运行。这些攻击利用了用户和服务器之间的信任关系，事实上服务器没有对输入、输出进行检测，从而未拒绝javascript代码。这篇文章讨论SQL注入和CSS攻击漏洞的检测技术。网上已经有很多关于这两种基于WEB</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3232884348413856655/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/sql_12.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3232884348413856655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3232884348413856655'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/sql_12.html' title='SQL注入技术和跨站脚本攻击的检测'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-5094731279501183201</id><published>2009-05-12T21:47:00.003-07:00</published><updated>2009-05-12T21:47:40.025-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>对清人推崇“尽一身之力说”的考察</title><summary type='text'>对清人推崇“尽一身之力说”的考察颜以琳清人推崇“尽一身之力说”，下面就清代书家此说举例论述。《佩文斋书画谱——卷三》云：“把腕来平平挺起，凡下笔点画波撆屈曲皆须尽一身之力而送之。古人贵悬腕者以可尽力耳。大小诸字古人皆用此法。若以掌贴桌上，则指便黏着于纸，终无气力，轻重便当失准。虽便挥运终欠圆健。盖腕能挺起则觉其竖，腕竖则锋必正，锋正则四面势全也。近来又以左手搭桌上，右手执笔按在左手背上，则来往也觉通利，腕亦自觉能悬。此则今日之悬腕也，比之古法非矣。然作小楷及中品字小草犹可，大真、大草必须高悬手书。如人立志要争衡古人，大小皆须悬腕，以求古人秘法，似又不宜从俗矣。”《佩文斋书画谱》抄录了清初万经的这段阐释并对当时的正在书法界应用的悬空枕腕法提出了批驳，实质是在提倡尽一身之力的悬腕法。而且提倡“大小皆须悬腕，以求古人秘法”。同期的书家蒋衡也提出了类似的观点。清代康乾时期的书家蒋衡《拙存堂题跋》</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/5094731279501183201/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_9151.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/5094731279501183201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/5094731279501183201'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_9151.html' title='对清人推崇“尽一身之力说”的考察'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-2676740050239442397</id><published>2009-05-12T21:47:00.001-07:00</published><updated>2009-05-12T21:47:09.743-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>DEDECMS后台功能说明书</title><summary type='text'>DEDECMS后台功能说明书后台是整个网站的管理工具。其功能包括：频道管理、内容发布、内容维护、HTML更新、核心模块、扩展模块、辅助插件、系统管理等功能。下面将各版块的功能做出简单的说明：频道管理频道管理内容模型管理指发表文档的类别，例如：普通文章，图片集，软件，FLASH，产品，专题，分类信息。功能：编辑，删除，复制和修改模板。网站栏目管理管理网站所有栏目。功能：创建顶级栏目，预览栏目页面，查看栏目文档，添加子栏目，修改栏目设置，移动栏目，删除栏目，更新排序，获取js,更新栏目HTML，更新文档HTML。自由列表管理可以用来生成GOOGLE地图、百度地图等，利于搜索引擎收录。功能：增加，更改，更新，删除，搜索列表单独页面管理单独页面，不属于网站栏目的页面，可以选择用模板或不用模板。功能：增加，更改，更新，删除页面。互动模块设置行业管理用于企业会员——公司资料——主营行业中的内容;</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/2676740050239442397/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/dedecms.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2676740050239442397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2676740050239442397'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/dedecms.html' title='DEDECMS后台功能说明书'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-6356257893916454113</id><published>2009-05-12T21:46:00.003-07:00</published><updated>2009-05-12T21:46:43.954-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>利用正则表达式去掉内容重的html标记</title><summary type='text'>FunctionRemoveHTML(strText)DimRegExSetRegEx=NewRegExpRegEx.Pattern="[^]*"RegEx.Global=TrueRemoveHTML=RegEx.Replace(strText,"")EndFunctioncontent=RemoveHTML(rs("content"))一切就这么简单!O(∩_∩)O~发布人：赵琪龙QQ:396337583电子邮箱：zhaoqilong168@163.com郑州网站制作，我们是您的首选，凭借多年的工作经验，专业承接各种网站制作，网站设计,网站改版及维护,网络营销顾问咨询及完整全方位解决方案,为您打造一流网站建设,网站制作,给企业带来增值效益,域名注册，空间租用，价格优惠，欢迎联系！已投稿到：阅读||||前一篇：评论[发评论]发评论验证码：发评论</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/6356257893916454113/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/html_12.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6356257893916454113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6356257893916454113'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/html_12.html' title='利用正则表达式去掉内容重的html标记'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-1617075678894500998</id><published>2009-05-12T21:46:00.001-07:00</published><updated>2009-05-12T21:46:09.712-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>解决Invalid escape sequence (valid ones are \b \t \n \f \r \" \</title><summary type='text'>Invalidescapesequence(validonesare\b\t\n\f\r\\'\\)这是一个正则表达式错误，搜索了一下jdk帮助文档，找到了这么一段话：根据JavaLanguageSpecification的要求，Java源代码的字符串中的反斜线被解释为Unicode转义或其他字符转义。因此必须在字符串字面值中使用两个反斜线，表示正则表达式受到保护，不被Java字节码编译器解释。例如，当解释为正则表达式时(很明显String.replaceAll(,)第一个参数就会被解释为正则表达式)，字符串字面值\b与单个退格字符匹配，而与单词边界匹配。字符串字面值\(hello\)是非法的，将导致编译时错误；要与字符串(hello)匹配，必须使用字符串字面值\\(hello\\)。答案应该就在这里。||浏览()|(0)最近读者：网友评论：发表评论：姓名：*姓名最长为50字节网址或邮箱</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/1617075678894500998/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/invalid-escape-sequence-valid-ones-are_12.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/1617075678894500998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/1617075678894500998'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/invalid-escape-sequence-valid-ones-are_12.html' title='解决Invalid escape sequence (valid ones are &amp;#92;b &amp;#92;t &amp;#92;n &amp;#92;f &amp;#92;r &amp;#92;&amp;#34; &amp;#92;'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-1094340724649146085</id><published>2009-05-12T21:45:00.003-07:00</published><updated>2009-05-12T21:45:39.658-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>c#全角半角转换</title><summary type='text'>#region 全角半角转换        /// &lt;summary&gt;        /// 转全角的函数(SBC case)        /// &lt;/summary&gt;        /// &lt;param name="input"&gt;任意字符串&lt;/param&gt;        /// &lt;returns&gt;全角字符串&lt;/returns&gt;        ///&lt;remarks&gt;        ///全角空格为12288，半角空格为32        ///其他字符半角(33-126)与全角(65281-65374)的对应关系是：均相差65248        ///&lt;/remarks&gt;        public static string ToSBC(string input)        {            //半角转全角：            char[] c = </summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/1094340724649146085/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/c_7191.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/1094340724649146085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/1094340724649146085'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/c_7191.html' title='c#全角半角转换'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-2001638252784943322</id><published>2009-05-12T21:45:00.001-07:00</published><updated>2009-05-12T21:45:10.096-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>解决Invalid escape sequence (valid ones are \b \t \n \f \r \" \</title><summary type='text'>Invalidescapesequence(validonesare\b\t\n\f\r\\'\\)这是一个正则表达式错误，搜索了一下jdk帮助文档，找到了这么一段话：根据JavaLanguageSpecification的要求，Java源代码的字符串中的反斜线被解释为Unicode转义或其他字符转义。因此必须在字符串字面值中使用两个反斜线，表示正则表达式受到保护，不被Java字节码编译器解释。例如，当解释为正则表达式时(很明显String.replaceAll(,)第一个参数就会被解释为正则表达式)，字符串字面值\b与单个退格字符匹配，而与单词边界匹配。字符串字面值\(hello\)是非法的，将导致编译时错误；要与字符串(hello)匹配，必须使用字符串字面值\\(hello\\)。答案应该就在这里。||浏览()|(0)最近读者：网友评论：发表评论：姓名：*姓名最长为50字节网址或邮箱</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/2001638252784943322/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/invalid-escape-sequence-valid-ones-are.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2001638252784943322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2001638252784943322'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/invalid-escape-sequence-valid-ones-are.html' title='解决Invalid escape sequence (valid ones are &amp;#92;b &amp;#92;t &amp;#92;n &amp;#92;f &amp;#92;r &amp;#92;&amp;#34; &amp;#92;'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-809631965165505330</id><published>2009-05-12T21:44:00.003-07:00</published><updated>2009-05-12T21:44:40.880-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>c#全角半角转换</title><summary type='text'>#region 全角半角转换        /// &lt;summary&gt;        /// 转全角的函数(SBC case)        /// &lt;/summary&gt;        /// &lt;param name="input"&gt;任意字符串&lt;/param&gt;        /// &lt;returns&gt;全角字符串&lt;/returns&gt;        ///&lt;remarks&gt;        ///全角空格为12288，半角空格为32        ///其他字符半角(33-126)与全角(65281-65374)的对应关系是：均相差65248        ///&lt;/remarks&gt;        public static string ToSBC(string input)        {            //半角转全角：            char[] c = </summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/809631965165505330/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/c_12.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/809631965165505330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/809631965165505330'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/c_12.html' title='c#全角半角转换'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-595081698049821456</id><published>2009-05-12T21:44:00.001-07:00</published><updated>2009-05-12T21:44:09.679-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>浮</title><summary type='text'>确实在生活中常常会发问:什么是音乐?什么是舞蹈?什么是绘画?......答案可能会是多样的,因为人们对事物的感知认识不同,结果也就不同.西汉著名的文学家、哲学家和语言学家扬雄，在《法言》里为书法下了一个定义：言，心声也；书，心画也。意为书法即是心理的描绘，也即是以其特有的线条来表达和抒发心绪情感的变化。书法的艺术性越高，那么与人类审美心理越接近。然学书不过一技耳，立品是第一关头。品高者，一点一画，自有清刚雅正之气；品下者，虽激昂顿挫、俨然可观，但那种纵横刚暴的品性会从字里行间流露出来。柳诚悬亦云：心正则笔正。后项穆又引申为：人正则书正。可见历来人们把人品和书品是联系在一起看待的。敬重颜鲁公也就越发的推重他的字，苏、黄、米、蔡中的蔡最后“易主”由此可见一斑。先生多次的教诲我，莫把书法的功利性看得太重，本是消遣娱乐自己，作书切忌浮躁。力图日省三身。“浮”，字典上有这样的注释：漂；表面的；空虚</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/595081698049821456/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_8469.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/595081698049821456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/595081698049821456'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_8469.html' title='浮'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-7262796013017111055</id><published>2009-05-12T21:43:00.003-07:00</published><updated>2009-05-12T21:43:39.297-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>MQSeries通过MQ资源管理器建立的如队列、通道不可以在MQSC中进行管理？</title><summary type='text'>原先通过MQ资源管理器创建了默认的QM管理器、队列、通道等，在启动好MQSeries后，我通过命令：runmqsc QM_portal进入mqsc界面，输入命令：display queue(default)显示无此队列，但是在MQ资源管理器的队列里面可以看到有default队列，通过命令：display queue(*)也可以查看到该队列的存在。我尝试了多次，并分别尝试命令：display channel(S_portal)也提示找不到该通道，该通道也是存在的，我在想是不是访问需要加上QM管理器名称等等，都尝试过，也不行，于是采用命令:define ql(ql1)再执行命令display queue(ql1)可以显示该队列的信息，并且在MQ资源管理器的队列中也可以查看到该队列。这个时候我在想，难不成MQ通过MQ资源管理器建立的如队列、通道等不可以在MQSC进行管理？</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/7262796013017111055/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/mqseriesmqmqsc.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/7262796013017111055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/7262796013017111055'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/mqseriesmqmqsc.html' title='MQSeries通过MQ资源管理器建立的如队列、通道不可以在MQSC中进行管理？'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-2393354381051056617</id><published>2009-05-12T21:43:00.001-07:00</published><updated>2009-05-12T21:43:09.827-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>古人名字相应</title><summary type='text'>古人有名又有字，名与字往往有意义上的联系，即所谓“名字相应”。当然，名字相应情况各有不同：有的十分显露，一看就懂；有的却相当隐晦曲折，非经详细解释，难以明白其究竟。下面举一些名人作为例子。孔子名丘字仲尼，因他出生前父母“祷于尼丘”（尼丘为山名），“生而首上圩顶”。孟子名轲字子舆，舆是车子，轲是车上部件。孔子的学生很多：颜回字渊，《说文》：“渊，回水也。”仲由字子路，行必由路。端木赐字子贡，上给下为赐，下奉上为贡。卜商字子夏，夏和商都是朝代名。宰予字子我，予和我都是第一人称代词。冉耕字伯牛，说明春秋时已用牛耕地。战国时代大诗人屈原名平，原是他的字。他在《离骚》篇首说：“皇览揆余初度兮，肇锡余以嘉名：名余曰正则兮，字余曰灵均。”据朱熹的解释，正则就是平，灵均就是原，“高平为原，故名平而字原也”。汉代史学家班固字孟坚，坚固两字同义。天文学家张衡字子平，平衡两字同义。三国时曹操字孟德，本于《荀子</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/2393354381051056617/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_4657.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2393354381051056617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2393354381051056617'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_4657.html' title='古人名字相应'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8051243856993983482</id><published>2009-05-12T21:42:00.003-07:00</published><updated>2009-05-12T21:42:39.989-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>日期验证 正则表达式（转）</title><summary type='text'>进入正题之前，我们需要澄清两个概念：一，什么是合法的日期范围？对于不同的应用场景，这个问题有不同的解释。这里采纳MSDN中的约定：DateTime值类型表示值范围在公元（基督纪元）0001年1月1日午夜12:00:00到公元(C.E.)9999年12月31日晚上11:59:59之间的日期和时间。二，关于闰年的阐释。人民教育出版社小学数学室的解释浅明易懂（mediawiki等都没说明为什么整百年份必须是400的倍数时才是闰年）：关于公历闰年是这样规定的：地球绕太阳公转一周叫做一回归年，一回归年长365日5时48分46秒。因此，公历规定有平年和闰年，平年一年有365日，比回归年短0.2422日，四年共短0.9688日，故每四年增加一日，这一年有366日，就是闰年。但四年增加一日比四个回归年又多0.0312日,400年后将多3.12日,故在400年中少设3个闰年,也就是在400年中只设97</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8051243856993983482/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_4082.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8051243856993983482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8051243856993983482'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_4082.html' title='日期验证 正则表达式（转）'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-5998209058861097497</id><published>2009-05-12T21:42:00.001-07:00</published><updated>2009-05-12T21:42:10.147-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>QRe.一个开源的正则表达式测试工具</title><summary type='text'>原文地址:http://QRe.开源的正则表达式测试工具项目主页：http://code.google.com/p/qre/用法：java-jarQRe.jar(如果您使用的安装版的JDK，直接双击就可以运行了)运行环境：Windows/Linuxjre1.5/1.6特点：1.支持匹配处高亮显示2.支持group3.支持多次匹配4.当点击表格中匹配到的项时，左边的文本框会定位到相应的上下文位置5.如果匹配到的文字过长，双击相应的项可以查看细节。||浏览()|(0)最近读者：网友评论：发表评论：姓名：*姓名最长为50字节网址或邮箱：(选填)内容：验证码：请点击后输入四位验证码，字母不区分大小写</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/5998209058861097497/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/qre.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/5998209058861097497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/5998209058861097497'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/qre.html' title='QRe.一个开源的正则表达式测试工具'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-2954488202710124481</id><published>2009-05-12T21:41:00.003-07:00</published><updated>2009-05-12T21:41:40.373-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>反思!</title><summary type='text'>排版助手这软件，越用感觉越舒服。不由想起为嘛排版软件不提供这么方便的功能呢？飞翔、id、pagemaker其中自带的文本工具编辑器功能怎么就没增加些这种功能？比如：飞翔自带的方正小样编辑器。就可以借鉴文字处理软件的部分功能。加入排版助手的这些文字标点修正，再支持正则表达式，能保存自定的正则式，方便大家交流正则上使用心得。比如：在飞翔置入的文本，直接能打开方正小样编辑器，进行一些纯文字的编辑，感觉要比在版式修改文字运行会快很多吧（特别文件中大量使用透明时），如有大量的表格，也能直接打开方正小样编辑器，进行文字的编辑，比在版式中的表格用查找命令快吧？再加入高亮显示文字应用的段落样式，文字样式，方便一目了然。再加入自动生成项目符号与编号（要可选可定义），例：一行开头输入为1.再打回车时下行开头自动为2.等等其他文字处理软件对文字修改的各种体贴方面。不要想着排版软件只是排版用的，</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/2954488202710124481/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_1908.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2954488202710124481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/2954488202710124481'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_1908.html' title='反思!'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-7727662836571094303</id><published>2009-05-12T21:41:00.001-07:00</published><updated>2009-05-12T21:41:10.652-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>在FLASH中使用正则表达式验证数据</title><summary type='text'>如果用过ASP.NET编写注册页面的人，都会为.NET所提供的验证控件而感到兴奋，它所提供的功能很强大。.NET里面内置了常用的正则表达式，使用起来非常方便。但是如果在FLASH要完成注册页面的话，里面繁琐的用户名、密码等判断就只有交由我们自己写咯。好，首先来看看效果：则表达式的类RegExp.class：哦～太长了，我直接UPLOAD一个附件好了userName、pwd、id、email、homepage为TextInput组件；userNameFalse、pwdFalse、idFalse、emailFalse、homepageFalse为出错后作提示作用的MC关于RegExp.class的使用技巧，\采用双反斜杆\\表示,使用这种形式的时候，可以防止解析程序当作转义序列的开始具体实现：vartxtListener:Object=newObject();</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/7727662836571094303/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/flash.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/7727662836571094303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/7727662836571094303'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/flash.html' title='在FLASH中使用正则表达式验证数据'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-6752339723843961862</id><published>2009-05-12T21:40:00.003-07:00</published><updated>2009-05-12T21:40:41.148-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>EditPlus正则表达式巧妙删除文档多余空行</title><summary type='text'>从网上收集的文章大多有大量多余的空行，占据了许多篇幅，如果需要打印就非常浪费纸张。想要删除这些空行，可是这些空行要么不包含任何字符，要么包含了许多空格、制表符(Tab)。如果文章比较长，那么手工删除空行就成为一件颇费精力的事情。难道就没有别的办法？当然有！我们可以借助文本编辑器软件EditPlus、UltraEdit实现。EditPlus、UltraEdit是常见的共享软件，几乎所有软件下载网站都提供下载。由于EditPlus的操作更容易上手，但UltraEdit更为常用，所以本文先介绍在EditPlus中的操作，再介绍UltraEdit。一、在EditPlus中删除空行启动EditPlus，打开待处理的文件。需要注意，必须是纯文本文件，如果是Word文档，需要先粘贴到纯文本文件中。然后，步骤如下：1.选择Search菜单的Replace命令，出现如图所示的文本替换对话框。选中</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/6752339723843961862/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/editplus_12.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6752339723843961862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6752339723843961862'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/editplus_12.html' title='EditPlus正则表达式巧妙删除文档多余空行'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-3206715319838269190</id><published>2009-05-12T21:40:00.001-07:00</published><updated>2009-05-12T21:40:09.675-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则表达式之/g,/i,/m</title><summary type='text'>其次，像g这种作为标记的，只有3个，分别是g、i、mg表示全文查找i表示忽略大小写m表示多行查询一般只用前两个，第3个很少用到。||浏览()|(0)最近读者：网友评论：发表评论：姓名：*姓名最长为50字节网址或邮箱：(选填)内容：验证码：请点击后输入四位验证码，字母不区分大小写</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/3206715319838269190/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/gim.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3206715319838269190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/3206715319838269190'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/gim.html' title='正则表达式之/g,/i,/m'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-7845209789892863059</id><published>2009-05-12T21:39:00.003-07:00</published><updated>2009-05-12T21:39:40.020-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正文抽取所需正则_skeryl的空间</title><summary type='text'>///summary///去掉所有html标签////summaryprivatestaticreadonlyRegexFilterAll=newRegex(@(\[([^=]*)(=[^\]]*)?\][\s\S]*?\[/\1\])|(?lj(?=[^\u4E00-\u9FA5\uFE30-\uFFA0,.);])a\s+[^]*[^]{2,}/a(?=[^\u4E00-\u9FA5\uFE30-\uFFA0,.);]))|(?Stylestyle[\s\S]+?/style)|(?selectselect[\s\S]+?/select)|(?Scriptscript[\s\S]*?/script)|(?Explein\!\-\-[\s\S]*?\-\-)|(?lili(\s+[^]+)?[\s\S]*?/li)|(?Html/?\s*[^]+(\s*[^=]+?=[']?[^']+</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/7845209789892863059/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/skeryl.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/7845209789892863059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/7845209789892863059'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/skeryl.html' title='正文抽取所需正则_skeryl的空间'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8248038207770179263</id><published>2009-05-12T21:39:00.001-07:00</published><updated>2009-05-12T21:39:11.823-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>find与grep命令简介及正则表达式</title><summary type='text'>在我们开始学习新的Shell编程知识之前,我们先来看一下两个更为有用的两个命令,这两个命令虽然并不是Shell的一部分,但是在进行Shell编程时却会经常用到.随后我们会来看一下正则表达式.find命令我们先来看的是find命令.这个命令对于我们用来查找文件时是相当有用的,但是对于Linux新手来说却有一些难于使用,在一定程序是由于他所带的选项,测试,动作类型参数,而且一个参数的执行结果会影响接下来的参数.在我们深入这些选项和参数之前,我们先来看一个非常简单的例子.假如在我们的机子上有一个文件wish.我们来进行这个操作时要以root身份来运行,这样就可以保证我们可以搜索整个机子:#find/-namewish-print/usr/bin/wish#正如我们可以想到的,他会打印出搜索到的结果.很简单,是不是?然而,他却需要一定的时间来运行,因为他也会同时搜索网络上的Window</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8248038207770179263/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/findgrep.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8248038207770179263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8248038207770179263'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/findgrep.html' title='find与grep命令简介及正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-4556721384995355684</id><published>2009-05-12T21:38:00.003-07:00</published><updated>2009-05-12T21:38:39.735-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则表达式</title><summary type='text'>1.必须包含一个并且只有一个符号@2.第一个字符不得是@或者.3.不允许出现@.或者.@4.结尾不得是字符@或者.5.允许@前的字符中出现＋6.不允许＋在最前面，或者＋@正则表达式如下：-----------------------------------------------------------------------^(\w+((-\w+)|(\.\w+))*)\+\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$-----------------------------------------------------------------------字符描述：^：匹配输入的开始位置。\：将下一个字符标记为特殊字符或字面值。*：匹配前一个字符零次或几次。+：匹配前一个字符一次或多次。(</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/4556721384995355684/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_9059.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4556721384995355684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/4556721384995355684'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_9059.html' title='正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-7796207679314303697</id><published>2009-05-12T21:38:00.001-07:00</published><updated>2009-05-12T21:38:19.556-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>一个正则表达式的类</title><summary type='text'>||浏览()|(0)最近读者：网友评论：发表评论：姓名：*姓名最长为50字节网址或邮箱：(选填)内容：验证码：请点击后输入四位验证码，字母不区分大小写</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/7796207679314303697/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3685.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/7796207679314303697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/7796207679314303697'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3685.html' title='一个正则表达式的类'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-5172155784690843063</id><published>2009-05-12T21:37:00.003-07:00</published><updated>2009-05-12T21:37:39.957-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>常用正则表达式</title><summary type='text'>\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*在deramweaver里整站搜索email的时候可以用匹配中文字符的正则表达式：[\u4e00-\u9fa5]评注：匹配中文还真是个头疼的事，有了这个表达式就好办了匹配双字节字符(包括汉字在内)：[^\x00-\xff]评注：可以用来计算字符串的长度（一个双字节字符长度计2，ASCII字符计1）匹配空白行的正则表达式：\n\s*\r评注：可以用来删除空白行匹配HTML标记的正则表达式：(\S*?)[^]*.*?|.*?/评注：网上流传的版本太糟糕，上面这个也仅仅能匹配部分，对于复杂的嵌套标记依旧无能为力匹配首尾空白字符的正则表达式：^\s*|\s*$评注：可以用来删除行首行尾的空白字符(包括空格、制表符、换页符等等)，非常有用的表达式匹配Email地址的正则表达式：\w+([-+.]\w+)*@\w+</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/5172155784690843063/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_2714.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/5172155784690843063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/5172155784690843063'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_2714.html' title='常用正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-341007069939030006</id><published>2009-05-12T21:37:00.001-07:00</published><updated>2009-05-12T21:37:09.675-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>常用正则表达式</title><summary type='text'>1、非负整数：”^d+$”2、正整数：”^[0-9]*[1-9][0-9]*$”3、非正整数：”^((-d+)|(0+))$”4、负整数：”^-[0-9]*[1-9][0-9]*$”5、整数：”^-?d+$”6、非负浮点数：”^d+(.d+)?$”7、正浮点数：”^((0-9)+.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*.[0-9]+)|([0-9]*[1-9][0-9]*))$”8、非正浮点数：”^((-d+.d+)?)|(0+(.0+)?))$”9、负浮点数：”^(-((正浮点数正则式)))$”10、英文字符串：”^[A-Za-z]+$”11、英文大写串：”^[A-Z]+$”12、英文小写串：”^[a-z]+$”13、英文字符数字串：”^[A-Za-z0-9]+$”14、英数字加下划线串：”^w+$”15、E-mail地址：”^[w-]+(.[w-]</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/341007069939030006/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_7095.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/341007069939030006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/341007069939030006'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_7095.html' title='常用正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8690957791693122120</id><published>2009-05-12T21:36:00.003-07:00</published><updated>2009-05-12T21:36:40.427-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>正则表达式学习(上)</title><summary type='text'>30分钟内让你明白正则表达式是什么，并对它有一些基本的了解，让你可以在自己的程序或网页里使用它。如何使用本教程最重要的是请给我30分钟，如果你没有使用正则表达式的经验，请不要试图在30秒内入门除非你是超人:)别被下面那些复杂的表达式吓倒，只要跟着我一步一步来，你会发现正则表达式其实并没有你想像中的那么困难。当然，如果你看完了这篇教程之后，发现自己明白了很多，却又几乎什么都记不得，那也是很正常的我认为，没接触过正则表达式的人在看完这篇教程后，能把提到过的语法记住80%以上的可能性为零。这里只是让你明白基本的原理，以后你还需要多练习，多使用，才能熟练掌握正则表达式。除了作为入门教程之外，本文还试图成为可以在日常工作中使用的正则表达式语法参考手册。就作者本人的经历来说，这个目标还是完成得不错的你看，我自己也没能把所有的东西记下来，不是吗？清除格式文本格式约定：专业术语元字符/</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8690957791693122120/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3134.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8690957791693122120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8690957791693122120'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_3134.html' title='正则表达式学习(上)'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8580754952030817792</id><published>2009-05-12T21:36:00.001-07:00</published><updated>2009-05-12T21:36:09.060-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>匹配中文字母数字的正则表达式</title><summary type='text'>$action=trim($_GET['action']);if($action=="sub"){$str=$_POST['dir'];echo$str;if(!preg_match("/^[".chr(0xa1)."-".chr(0xff)."A-Za-z0-9_]+$/",$str))//GB2312汉字字母数字下划线正则表达式//if(!preg_match("/^[\x{4e00}-\x{9fa5}A-Za-z0-9_]+$/u",$str))//UTF-8汉字字母数字下划线正则表达式{echo"fontcolor=red您输入的[".$str."]含有违法字符/font";}else{echo"fontcolor=green您输入的[".$str."]完全合法,通过!/font";}}?formmethod="POST"action="?action=sub"输入字符(数字,</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8580754952030817792/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_5558.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8580754952030817792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8580754952030817792'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_5558.html' title='匹配中文字母数字的正则表达式'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-6529943832449962423</id><published>2009-05-12T21:35:00.003-07:00</published><updated>2009-05-12T21:35:39.224-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>javascript正则表达式获取fckeditor的图片地址</title><summary type='text'>终于要开始正题了，在fckeditor中获取图片地址，要分n种情况，先从fckeditor中得到html，对于1的正则表达式是说明：如果match不是null，那match[0](是零，不是O)就是匹配的整个img标签，match[1]就是src的值；这里用了捕获组和非捕获组，所以match[1]才是src的值，写博客的时候才想起来，这里面有疏漏，并没有使用分组命名，这完全是受了java的影响，因为开始的时候我在java里面使用了，而java并不支持分组命名（据说java7支持分组命名），导致我后来竟然没有加上。对于2的正则当然要就是：ie情况下要用到三个正则表达式，不知道有没有更简单的方法；这三个是都要验证的。因为情况不同。在firefox下直接按第一种情况就可以了。大家应该都懂了，如果对正则表达式还不熟悉，可以看看：http://open4y.blogspot.com/2009/05</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/6529943832449962423/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/javascriptfckeditor.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6529943832449962423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/6529943832449962423'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/javascriptfckeditor.html' title='javascript正则表达式获取fckeditor的图片地址'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8399410979567886156</id><published>2009-05-12T21:35:00.001-07:00</published><updated>2009-05-12T21:35:09.187-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>java 正则表达式 IO</title><summary type='text'>importjava.io.*;importjava.util.regex.*;classJString{publicstaticvoidmain(String[]args){//主函数BufferedReaderbr=newBufferedReader(newInputStreamReader(System.in));try{intn=0;Stringstr="";System.out.println("请输入大于1的数字");Patternpt1=Pattern.compile("[0-9]*$");//正则表达式匹配数字Stringline1=br.readLine();Matcherm=pt1.matcher(line1);if(m.matches()){n=Integer.parseInt(line1);if(n1){System.out.println("</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8399410979567886156/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/java-io_12.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8399410979567886156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8399410979567886156'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/java-io_12.html' title='java 正则表达式 IO'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9221849043717446821.post-8955161952388176292</id><published>2009-05-12T21:34:00.001-07:00</published><updated>2009-05-12T21:34:44.724-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则'/><title type='text'>强烈推荐《精通正则表达式（第三版）》</title><summary type='text'>正则表达式唯一可以称得上经典的好书，下面是我在当当网上对它的评论：毫无疑问，该书当之无愧是正则方面的老大！作者多年从事正则方面的工作，从玩Egrep和perl中的正则到现在各种语言中的正则，对此技术是绝对的权威！就连正则的历史变更也是了如指掌！我强烈建议学习正则的朋友阅读此书！可以这么说，你要是读了这本书，别的正则书估计你都会扔掉了，因为其他书在它面前不值一提，全是小菜花，不求甚解！作者用心良苦，为了引导读者去思考，特意将提问的答案放在下一页！而且作者牛到以讲故事的形式来写作此书，以大白话来讲述技术，真牛人也，文字功底也超牛！此书不但浅显易懂，而且让人兴趣昂然！翻译得也很到位，译者不愧是搞技术的！</summary><link rel='replies' type='application/atom+xml' href='http://wenbloger.blogspot.com/feeds/8955161952388176292/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_12.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8955161952388176292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9221849043717446821/posts/default/8955161952388176292'/><link rel='alternate' type='text/html' href='http://wenbloger.blogspot.com/2009/05/blog-post_12.html' title='强烈推荐《精通正则表达式（第三版）》'/><author><name>文博客</name><uri>http://www.blogger.com/profile/03952503425661426058</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
