Java Utililty Methods String Split by Comma

List of utility methods to do String Split by Comma

Description

The list of methods to do String Split by Comma are organized into topic(s).

Method

ListsplitOnComma(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());
...