I am trying to split the response that I got from http posting. The response is a byte array.
I am trying to split this as,
String venuesArray[] = text.toString().split("~~~");
for (String venueDetails:venuesArray) {
String arr2[] = venueDetails.split("^^^");
}
Here I am able to split the venuesArray without any problem, but same thing is not happening with venueDetails. It is not getting splitted.
Any answer for this?
The ^ character is a special character and needs to be escaped.
In Java, the backslash is also special, so you need an extra escape.