摘要: 最简单的正则表达式的用法就是测试一个特定的字符串是否与之匹配。首先使用一个正则表达式的字符串来构造Pattern对象,然后从Pattern对象中获取一个Matcher对象,并调用它的matches方法:Pattern pattern = Pattern.compile(patternString);... 阅读全文
posted @ 2014-12-25 20:39 米其林轮船 阅读(143) 评论(0) 推荐(0) 编辑