public static List<String> changeStrToListByReg(String str,String delim){
List<String> list=null;
if (StringUtils.isNotEmpty(str)) {
StringTokenizer tokenizer=new StringTokenizer(str, delim);
int count=tokenizer.countTokens();
if (count>1) {
list=new ArrayList<String>();
while (tokenizer.hasMoreTokens()) {
list.add(tokenizer.nextToken());
}
}
}
return list;
}```