Str = "abc|def|ghi^jkl|mno";
String[] Flds = Str.split("[|]");
//Flds[0] = "abc";
//Flds[1] = "def";
//Flds[2] = "ghi^jkl";
//Flds[3] = "mno";
現在我想知道FLDS子域[2],但沒有下面的工作是 -的Java string.split功能
String[] Flds = Str.split("[^]");
String[] Flds = Str.split("[^]]");
String[] Flds = Str.split("^");
埃姆,你正試圖再次分裂海峽,不FLDS [2] –