List of utility methods to do String Split by Comma
List | splitOnComma(String cs) split On Comma List<String> args = new ArrayList<String>(); if (cs == null) { return args; } else { String[] split = cs.split("(?<!\\\\),"); for (String arg : split) { args.add(arg.trim().replaceAll("\\\\,", ",")); return args; |
String[] | splitWithCommaOrSemicolon(String src) split With Comma Or Semicolon if (isEmpty(src)) { return new String[0]; String[] ss = split(src.replace(',', ';'), ";"); List<String> list = new ArrayList<String>(); for (String s : ss) { if (!isBlank(s)) { list.add(s.trim()); ... |