Home
Mobile
Internet
Server
Language
Enterprise
Database
News
Others
Search
java 用replaceAll 方法结合正则表达式将字符串中所有的反斜杠(\)替换为斜杠(/)的方式
Others
2021-12-15 17:17:30
views: null
String s1 = "2021\0318\1755\001";
s1 = s1.replaceAll("\\\\", "/");
这样 s1 的值就变成了 "2021/0318/1755/001"
Guess you like
Origin
blog.csdn.net/dd2016124/article/details/114986720
Recommended
Ranking
Empire cms smart tag calls four first-level recommended articles, starting from the fourth article
Linux environment installation and configuration Elasticsearch7.17
Big Data processing architecture and Lambda Kappa architecture
Explore the top of the AI large model platform - Wenxin Qianfan
Beijing car PK10 lucky airship Guanya size and value of the odd and even tips
W3B x Sui Hacker House|In-depth understanding of Sui and Move language
Know almost Ko Chan: Chinese what any decent open source software products? (Finishing from my original answer)
Comprehensively improve AD domain security authentication | Zhuyun IDaaS
Android Update Engine Analysis (24) What happened when making the downgrade package?
Spark Architecture and Operating Mechanism (1) - System Architecture
Daily
More
2024-05-07(34)
2024-05-06(6)
2024-05-05(0)
2024-05-04(18)
2024-05-03(8)
2024-05-02(0)
2024-05-01(4)
2024-04-30(36)
2024-04-29(5)
2024-04-28(12)