java - Android String operations, separate lines in a string -


itemprop = "text">

I have one output as:

  {"status": "07 \ /09\/20l207:l6||heythisisatestquestion||AndyesIreallyansweredthisquestiontoo-||07\/09\/20l207:l0||heythisistestquestion||ThisismyresponsetoyourTESTquestion-ys,ireallyansveredyuk:-)||07\/09\/20l206:29 || SOS || SOSagain- Yes || 07 \ / 09 \ / 201206: 27 || SOS || SOSagain- Yes || 07 \ / 09 \ / 201,205: 05 || test || Yes, respondingtothisTEST- yes, it "Skarfing ',' phone ':" xxxxxxxxx "}   

I do, I must separate each value || array

For example:

  ** 07 \ / 09 \ / 201,207: 16 .. 07 \ / 09 \ / 201207: 10 .. 07 should \ / 09 \ / 201206: 29 ** array on ** heythisisatestquestion .. should heythisistestquestion .. SOS ** array question ** AndyesIreallyansweredthisquestiontoo .. ThisismyresponsetoyourTESTquestion .. Ireallyansweredyou ** < / Code>  

The array should be in the answer, how can I separate each value that matches the keyword?

You can find a similar function to use the expression to generate JSON you are using PHP For more then send in array or Java

  int count = 0; String [] arr; Arrival = str.split ("\\ | \\ |"); For (int i = 0, j = 1, k = 2; i & LT; str.length; i + = 3, j + = 3, k + = 3) {array1 [count] = arr [i]; Array2 [count] = arrival [ja]; ..... ..... count ++; }    

Comments