可能重复:
使用replaceall输出错误
如果我有字符串:
String test = "replace()thisquotes";
test = test.replaceAll("()", "");
Run Code Online (Sandbox Code Playgroud)
测试结果仍然是: test = "replace()thisquotes"
所以()没有被替换.
有任何想法吗?
| 归档时间: |
|
| 查看次数: |
8985 次 |
| 最近记录: |