Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想拆分字符串。
例如)
str1=str\|2|str3=str4
结果)
str1=str\|2 str3=str4
如何在java中使用模式拆分它?
使用此正则表达式拆分
(?<=\\|\\d)\\| -- | |->kept | out so it doesnt get included in the result!
在这里查看