As suggested in the comments, you may split on &
then on =
, like this example :
String testString = "param1=value1¶m2=value2¶m3=value3¶m4=value4¶m5=value5";
String[] paramValues = testString.split("\\&");
for (String paramValue : paramValues) {
System.out.println(paramValue.split("\\=")[1]);
}
solved How to retrieve specific values from String