摘要:
Pattern p = Pattern.compile("cat");Matcher m = p.matcher("one cat two cats in the yard");StringBuffer sb = new StringBuffer();while (m.find()) { m.appendReplacement(sb, "dog");}m.appendTail(sb);S... 阅读全文
posted @ 2014-12-15 19:58
LinuxCC
阅读(1631)
评论(0)
推荐(0)

浙公网安备 33010602011771号