摘要: //移除首部和尾部 public static String replaceStr(String str) { Pattern pattern = Pattern.compile("^,+|,+$"); Matcher matcher = pattern.matcher(str); return matcher.replaceAll(""); } //只移除尾部 publ... 阅读全文
posted @ 2016-12-02 11:01 好吧的啊 阅读(1176) 评论(0) 推荐(0) 编辑