腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
replaceAll
()
方法
出错
我在String st=str.
replaceAll
(" ","");中有错误,但在添加此行后再次包含import java.lang.String.*;,同样的错误重复发生。String st=str.
replaceAll
(" ","");
浏览 4
提问于2011-08-18
得票数 0
3
回答
Java
replaceAll
()
方法
、
、
、
我试着理解这段代码: fileName = f.getName().toUpperCase().
replaceAll
("_\\d\\d\\d\\dif (fileName.equals(tableName + ".XML")) { break;} 我被困在这部分:
replaceAll
浏览 8
提问于2016-03-30
得票数 1
回答已采纳
3
回答
替换()
方法
或
replaceAll
()
方法
、
、
但是我们不应该使用replace()或
replaceAll
()
方法
。我们如何在Java中实现这一点?
浏览 5
提问于2014-02-11
得票数 2
回答已采纳
2
回答
错误
replaceAll
() java
方法
、
</gras> text.
replaceAll
("</gras
浏览 5
提问于2013-08-30
得票数 0
1
回答
使用圆括号
replaceAll
方法
、
、
、
(physician(P0)), not(ins_physician(P0))managesaEDC = EDC.
replaceAll
我认为问题可能是妄想,所以我将字符串改为st变量,如下所示:然后我试着但我得到了一些结果问题是,当我像那样使用
replaceAll
时: EDC = EDC.
replaceAll
("m
浏览 2
提问于2014-08-19
得票数 0
1
回答
Groovy灵活的
replaceAll
方法
我提取了值,所以我得到了1,2,3等或5,7,1,现在问题开始了我知道
replaceAll
方法
,但有可能以某种方式使它更灵活吗?或者如果我想更改1 2 3,我必须定义3个
replaceAll
方法
("1",“1”) ("2",“2”) ("3",“3”)?哦,是的,仅在输出时切换值。
浏览 1
提问于2013-05-20
得票数 0
回答已采纳
1
回答
使用反斜杠为字符串中的特殊字符添加前缀
、
有没有更简单的
方法
给特殊字符加上前缀\例如: .
replaceAll
("=", &quo
浏览 17
提问于2019-08-10
得票数 0
回答已采纳
5
回答
字符串
replaceAll
方法
、
;a=a.
replaceAll
("a", "");在删除“a”之前,结果: 是啊,我不知道现在发生了什么!
浏览 3
提问于2010-03-22
得票数 3
回答已采纳
3
回答
字符串:.
replaceAll
和.Substring:实用示例解释?
、
、
、
在以下两种
方法
中实际发生了哪些步骤?我对这些
方法
有一个大致的了解,但我不知道怎么做。
方法
1: return name.substring(0, 1)+ name.substring(1).
replaceAll
("[aeihouwy]", "");
方法
二: public String processEquivalentLetters(
浏览 4
提问于2014-05-02
得票数 0
1
回答
replaceAll
("\\<.?>")与
replaceAll
("<.?>")
、
、
在Java中使用尖括号时,"\<“和"<”有什么区别?如果他们是一样的,为什么人们添加"\“冗余?比如或
浏览 1
提问于2013-12-27
得票数 2
回答已采纳
1
回答
ReplaceAll
清除字符串
、
、
、
、
我必须使用很少的
replaceAll
函数来清理数据。JSON.parse(data.
replaceAll
('{\'', '{"').
replaceAll
('\'}', '"}').
replaceAll
('\',\'', '","').
replaceAll
('\': \''
浏览 0
提问于2019-07-10
得票数 0
回答已采纳
5
回答
.
replaceAll
()
方法
不能正常工作
、
、
m.getRandomPirateWord().contains(letter+"")){ at java.util.regex.Pattern.compile(Pattern.java:1022) at java.lang.String.
replaceAll
浏览 7
提问于2014-04-25
得票数 0
1
回答
用下划线替换多个字符
、
、
我使用了
replaceAll
的链接。有没有更好的
方法
?N-570) or Certificate of U.S Citizenship (From N-560 or N-561)"; console.log(((str).toUpperCase()).
replaceAll
(' ', '_').
replaceAll
('\'', '_').
replaceAll
('(', '
浏览 2
提问于2022-07-28
得票数 -1
回答已采纳
1
回答
如何替换同一字符串中的多个字符?
、
有没有更好的
方法
来解决这个替换字符串中多个字符的过程?strings.
ReplaceAll
(strings.
ReplaceAll
(strings.
ReplaceAll
(strings.
ReplaceAll
(strings.
ReplaceAll
(strings.
ReplaceAll
(strings.
ReplaceAll
(strings.
ReplaceAll
(strings.
ReplaceAll
(godiacritics
浏览 49
提问于2021-10-04
得票数 5
1
回答
Java :字符串替换以转换时间
、
、
、
我试过使用.
replaceAll
。这导致5:3被替换为05:03,但也使17:3变成0107:03。有人对正确的
方法
有什么建议吗?("0", "00").
replaceAll
("1", "01").
replaceAll
("2", "03") .
replaceAll
('4', "04").
replaceAll
浏览 3
提问于2012-11-05
得票数 1
回答已采纳
3
回答
使用Java String.
replaceAll
的正则表达式
、
、
、
cleanInst.
replaceAll
("[<i>]", ""); cleanInst.
replaceAll
("[//]", "/"); cleanInst.
replaceAll
("[\bPhysics Dept
浏览 27
提问于2013-06-01
得票数 8
3
回答
字符串替换所有线程不安全
、
、
但是我的
方法
也不安全吗?我想不是..。或者请你解释一下如果是..。private static String doSomething(String rawValue) { .
replaceAll
("<",&q
浏览 2
提问于2014-06-25
得票数 0
回答已采纳
2
回答
希腊元音,重音显示为两个字符,而不是一个字符。
、
、
(例如,将έ转换为έ),有什么“全局
方法
”来处理这种编码问题吗?"έ") .
replaceAll
("ί", "ί") .<em
浏览 6
提问于2022-07-05
得票数 0
回答已采纳
6
回答
用于转义特殊字符的Java
replaceAll
()
方法
、
、
我使用java
replaceAll
()
方法
来转义新行字符。String comment = "ddnfa \n \r \tdnfadsf ' \r t ";最后我用了: comment = comment.
replaceAll
("\\n",
浏览 1
提问于2013-08-12
得票数 4
3
回答
字符串
replaceAll
多个字符
、
、
没有替换所有输出:[3, 2, 1]是否可以使用单个
replaceAll
方法
来完成此操作,例如 set.add("2"); System.out.println(set.toString().
replaceAll
("\\[", &q
浏览 3
提问于2013-10-05
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
热门
标签
更多标签
云服务器
ICP备案
对象存储
云直播
腾讯会议
活动推荐
运营活动
广告
关闭
领券