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] 的子字段,但以下都不起作用 -
String[] Flds = Str.split("[^]");
String[] Flds = Str.split("[^]]");
String[] Flds = Str.split("^");