Java split方法一个或多个特殊字符分割
public static void main(String[] args) {
String s = "ab|cd|ef";
//String s = "ab;cd,ef";
//String[] split = s.split(";|,");
String[] split = s.split("\\|");
// System.out.println(split[0]);
for(int i = 0; i < split.length; ++i ) {
System.out.println(split[i]);
}
}