I have a String that I'm trying to turn into a list but I get empty entries.
",A,B,C,D, ,,,"
returns
[, A, B, C, D, , , ,]
I want to remove all "empty" commas:
[A, B, C, D]
I'm trying
current.split(",+\\s?")
which does not produce the result I want. What regex should I use instead?