2013年6月4日

正则表达式中\d和[0-0]有什么区别

摘要: 今天看到Stackoverflow上一个有趣的问题,为什么正则表达式在中\d比[0-0]低效?提问者用了如下的代码来做测试: static void Main(string[] args) { var rand = new Random(1234); var strings = new List<string>(); //10K random strings for (var i = 0; i < 10000; i++) { /... 阅读全文

posted @ 2013-06-04 13:20 fresky 阅读(2166) 评论(0) 推荐(0) 编辑

导航