摘要: 1.当有其他字符出现时,返回的数组长度>1 String s = "3 6\\5656"; Pattern pattern = Pattern.compile("[^0-9-]+"); String[] ss = pattern.split(s); System.out.println(ss.len 阅读全文
posted @ 2016-08-19 09:59 _万古如长夜 阅读(5355) 评论(0) 推荐(1) 编辑