a = "foobarfoobarhmm"
我希望输出为"fooBARfoobarhmm"
即只有第一次出现的"bar"应该用"BAR"代替.
我想在下面替换第一次出现的String.
String test = "see Comments, this is for some test, help us"
Run Code Online (Sandbox Code Playgroud)
**如果测试包含如下输入,则不应替换
我想得到如下输出,
Output: this is for some test, help us
Run Code Online (Sandbox Code Playgroud)
提前致谢,