Mr.nine

技术永无止境,智能宽广天下,探索马不停蹄,学习不进则退!

博客园 首页 新随笔 联系 订阅 管理

2011年8月17日 #

摘要: 1 String regex = "^((\\d+)[Yy])?((\\d+)[Mm])?((\\d+)[Dd])?$"; 2 // 正则式 3 Pattern pattern = Pattern.compile(regex); 4 Matcher matcher = pattern.matcher(content); 5 // 使用正则式匹配字符串 6 boolean ret = matcher.find(); 7 // 查找上一个匹配式不是存在 8 9 if (ret) {10 final int y = 2;11 final int m = 4;12 final in 阅读全文
posted @ 2011-08-17 17:50 Mr.nine 阅读(149) 评论(0) 推荐(0)

摘要: 谢谢审核团队这么快给我开通,在这里我将会把所学到的贴出来,与大家分享。 阅读全文
posted @ 2011-08-17 10:48 Mr.nine 阅读(99) 评论(0) 推荐(0)