Tried to split and find out what regex pattern can be done for my case , but didn't find solution. I have following string
param1=234¶m2=5||param3>3¶m4=N/A (04)¶m5=some valued¶m6=this good - new value¶m7=A (newparam)
My steps
1. string.replaceAll("&|\\|\\|", ",");
2. string.split("[\\w,]")
if put such string
param1=234¶m2=5||param3>3
then it split up to to values:
param1
234
param2
5
param3
3
But when i have whitespaces and "/" and "(" and "-" then it's divided to each value. What a regex pattern should be used then in order to get following output?
param1
234
param2
5
param3
3
param4
N/A (04)
param5
some valued
param6
this good - new value
param7
A (newparam)
I do it for inserting them after this as key=value into map. May be other way exists to approach but for now if i have separated array of values then i can insert them into a map.
So, for now I need only a regex how to split it. Thanks in advance
[=&>]|\\|\\|s.split("\\|{2}|[&=<>]"), see demo.