在复杂的字符串中拆分字符串部分

时间:2015-10-19 09:38:03

标签: java

String string = "[A100, test, message1, 6/24/2015 19:38, 6/24/2015 19:38],
[A101, test, message2, 6/24/2015 19:38, 6/24/2015 19:38],
[A102, test, message3, 6/24/2015 19:38, 6/24/2015 19:38],
[A103, test, message4, 6/24/2015 19:38, 6/24/2015 19:38]"

I want split as four parts
A101, test, message2, 6/24/2015 19:38, 6/24/2015 19:38
A101, test, message2, 6/24/2015 19:38, 6/24/2015 19:38
A102, test, message3, 6/24/2015 19:38, 6/24/2015 19:38
A103, test, message4, 6/24/2015 19:38, 6/24/2015 19:38
你能否尽快做好。

List<String> elephantList = Arrays.asList(incomingString.split("],"));
        for (String string1 : elephantList) {
            if(string1.contains("Intro to Working with the IACUC") ||string1.contains("Working with the IACUC")){

1 个答案:

答案 0 :(得分:0)

看看这有助于你:

.GetProperty("DocumentWebParts")

输出:

TreeNode