I am trying to replace a + character into a hyphen I have in my string.
+
hyphen
String str = \"word+word\"; str.replaceAll(\'+ \', \'-\');
6条回答 猫巷女王i (楼主) 2021-01-29 07:22 Use "" as opposed to '' in replaceAll. String java.lang.String.replaceAll(String regex, String replacement) 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 自定义标题段落格式字体字号代码语言点击上传x 验证码 看不清? 提交回复
Use "" as opposed to '' in replaceAll.
String java.lang.String.replaceAll(String regex, String replacement)
热议问题