8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b54c2e commit 32087bbCopy full SHA for 32087bb
docs/basics/java-basic/replace-in-string.md
@@ -24,5 +24,5 @@ replaceAll和replaceFirst的区别主要是替换的内容不同,replaceAll是
24
25
//使用replaceFirst将第一个数字替换成H
26
System.out.println(string.replaceFirst("\\d","H"));//abcH23adb23456aa
27
- //使用replaceFirst将所有数字替换成H
28
- System.out.println(string.replaceAll("\\d","H"));//abcHHHadbHHHHHaa
+ //使用replaceAll将所有数字替换成H
+ System.out.println(string.replaceAll("\\d","H"));//abcHHHadbHHHHHaa
0 commit comments