I want to split string.
for example)
str1=str\|2|str3=str4
result)
str1=str\|2
str3=str4
how to split it using pattern in java?
Use this regex to split
(?<=\\|\\d)\\|
--
|
|->kept | out so it doesnt get included in the result!
check it out here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With