博客园  :: 首页  :: 联系 :: 订阅 订阅  :: 管理

2009年12月22日

摘要: 知道正则表达式中用\u4e00-\u9fa5匹配汉字, 知道用\d匹配数字,\w匹配单词,\n换行……,可用什么匹配双引号呢" 有人用\" 来匹配双引号,或则用\'''匹配,可这只能在C#中才能用吧。偶然一天,发现如下方法求得了正则表达式中双引号的值. 第一步,求出字符的asc码。第二步,把该asc码转换为4位的16进制数,位数不够者,前面加0,比如asc(")=34(34)10=(22)16 ... 阅读全文

posted @ 2009-12-22 14:36 ╁蓝驿┲→ 阅读(4765) 评论(0) 推荐(0) 编辑

摘要: 一个.net的正则表达式测试工具 RegEx TestBed is a free regular expression testing and benchmarking tool. RegEx TestBed helps you test your regular expressions in WYSIWYG manner. Main window of RegEx TestBedBeside... 阅读全文

posted @ 2009-12-22 09:52 ╁蓝驿┲→ 阅读(319) 评论(0) 推荐(0) 编辑