我有一個輸出的形式:Android的字符串操作,字符串中的單獨的行
{"status":"07\/09\/201207:16||heythisisatestquestion||AndyesIreallyansweredthisquestiontoo-||07\/09\/201207:10||heythisistestquestion||ThisismyresponsetoyourTESTquestion-yes,Ireallyansweredyou.:-)||07\/09\/201206:29||sos||SOSagain-yes||07\/09\/201206:27||sos||SOSagain-yes||07\/09\/201205:05||test||Yes,respondingtothisTEST-yes,it'sworking","phone":"xxxxxxxxx"}
我想要做的是,我應該得到每個值由||分離在陣列
例如:
**07\/09\/201207:16 .. 07\/09\/201207:10 .. 07\/09\/201206:29** should be in array date
**heythisisatestquestion .. heythisistestquestion .. sos** should be in array question
**AndyesIreallyansweredthisquestiontoo .. ThisismyresponsetoyourTESTquestion .. Ireallyansweredyou**
應該在陣列的答案,我怎樣才能通過匹配關鍵字||每個值分開。
讓它工作,thnx很多:D – ZealDeveloper 2012-07-10 06:05:18