27
Feb

A question in .net regular expression matching / .net中一个正则匹配的问题

近日项目需要,用了一下C#中的正则匹配,惊奇的发现\w居然能够匹配到中文。

查了半天MSDN,未果。google后仅得到以下关于Ruby中正则的说明:

\w

字母和数字。等同于[0-9A-Za-z]。

若为匹配多字节字符的正则表达式时,则也会匹配日语的全角字符。

猜测.net内部是用unicode处理数据的,故在正则中\w也匹配到了多字节的中文字符。

待进一步确认中,欢迎指点迷津。

update:

已经确认,见以下链接:

http://www.microsoft.com/china/msdn/library/webservices/asp.net/regexnet.mspx?mfr=true

“预定义的集合元字符” 章节,\w 的说明部分。

24
Feb

没有06回顾,就来段展望07吧

其实这也是对自己性格的一种硬性调整,一直以来发觉自己骨子里还是属于感性之人,不太习惯非常有条理的去思索和做事,却偏偏走上了理科之路。所以希望这样的调整多少有些效用,让自己变得有规划些。

闲话不提。

回头望望06年,换了份工作,搬了数次家,经历了匆匆来又匆匆去的爱情,腰围也粗了好几寸,所谓收获颇丰。但是想回头细细品问的时候,却发现没有太多可圈可点之处。或许06已经在这样的庸庸碌碌中闪过,留给我似水清淡。

其实07已经过了1/4了,但总习惯以农历作为年之间的划分。于我,07正刚刚开始,所以有必要对这一年有所交代。

more…

24
Feb

2007.02.23

  • create a new wordpress plugin named “cube-mailer” to slove multibytes problems in wp mail sending process, more information is available here.
  • wordpress updated to version 2.1.1, no major difference to me.
  • add a new plugin “Flickr Photo Gallery” to build an album for myself, which you can found: here.

  • 创建了一个新的wordpress插件,命名为:cube-mailer。主要用于解决wp发信问题中多字节字符乱码的问题,更多详细信息可以看这里
  • 更新wordpress到2.1.1版本,似乎没发现太多的改动。
  • 新增了一个wp插件“Flickr Photo Gallery”,用来创建我自己的相册,有兴趣的话不妨看看
14
Feb

Happy Valentine’s Day

Still single, huh? Let’s enjoy!

Maybe you’d like to review this article on the same day last year.

Make a wish:  Next year I’ll spend this day together with some girl :P

Also for the coming Spring Festival, everyone’s gonna celebrate.

Good day.

08
Feb

2007.02.08

Finally things turn to commercial. I bought a space on bluehost.com

hope this time everything will go better.

meanwhile, I start to offer blog service, in case you need one. that’s totally free :)