摘要: 下午花了点时间写了个正则表达式和编码转换的工具,正则表达式工具是模仿YART Yet Another Regex Tester写的,而里面涉及到编码转换的核心算法如下,工具在下面可以下载。1、unicode编码转汉字核心算法: publicstringStrToGB(strings){if(s.Length>0){MatchCollectionmc=Regex.Matches(s,@"\\u([\w]{2})([\w]{2})",RegexOptions.Compiled|RegexOptions.IgnoreCase);foreach(Matchminmc){byt 阅读全文
posted @ 2012-09-13 17:26 亦心 阅读(3689) 评论(2) 推荐(1) 编辑