提交 8440deea 编写于 作者: B baichangfu

修改用法例子中的注释笔误

上级 fbb3ce8c
......@@ -20,7 +20,7 @@ replaceAll和replaceFirst的区别主要是替换的内容不同,replaceAll是
//文字替换(全部)
Pattern pattern = Pattern.compile("正则表达式");
Matcher matcher = pattern.matcher("正则表达式 Hello World,正则表达式 Hello World");
//替换第一个符合正则的数据
//替换所有符合正则的数据
System.out.println(matcher.replaceAll("Java"));
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册