文字列ごとに2つのフィールドと2つの値を含む3つの文字列があります。データを取得できるように、文字列の正規表現が必要です。3つの文字列は次のとおりです。
TTextRecordByLanguage{Text=Enter here the amount to transfer from your compulsory book saving account to your compulsory checking account; Id=55; }
TTextRecordByLanguage{Text=Hello World, CaribPayActivity!; Id=2; }
TTextRecordByLanguage{Text=(iphone); Id=4; }
2つのフィールドはとであるため、フィールドText
とセミコロン()のId
間のデータを取得する式が必要です。特別な記号とデータが含まれていることを確認してください。Text
;
アップデート ::
私が試したこと.....
Pattern pinPattern = Pattern.compile("Text=([a-zA-Z0-9 \\E]*);");
ArrayList<String> pins = new ArrayList<String>();
Matcher m = pinPattern.matcher(soapObject.toString());
while (m.find()) {
pins.add(m.group(1));
s[i] = m.group(1);
}
Log.i("TAG", "ARRAY=>"+ s[i]);