摘要: 1 String s ="我的QQ是:456456 我的电话是:17123456789 我的邮箱是:aaa123@aaa.com"; 2 Pattern p = Pattern.compile("((17\\d)|(18\\d))\\d{8}"); 3 Matcher m = p.matcher(s); 4 while (m.fin... 阅读全文
posted @ 2019-02-27 15:59 稀依心 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1 String f = NumberFormat.getCurrencyInstance(Locale.CHINA).format(123456.127456789); 2 String s = f.substring(1); 3 System.out.println(s); 4 5 System.out.pri... 阅读全文
posted @ 2019-02-27 11:13 稀依心 阅读(159) 评论(0) 推荐(0) 编辑