Answer the question
In order to leave comments, you need to log in
How to parse java text from a variable?
Answer the question
In order to leave comments, you need to log in
You can use a regular expression, something like: JSESSIONID=(.*?);
You can stupidly find the occurrence of "JSESSIONID =", then take a substring, and find the first occurrence of ";" in it. - the substring between them will be necessary.
And you can split the string into an array, by ";", then split each element of the array into two parts, before "=" and after, and add it to a hashmap, thus we will be able to manipulate data through key-value.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question