splitIgnoreEmpty

fun CharSequence.splitIgnoreEmpty(vararg delimiters: Char): List<String>(source)

Splits a string at the given delimiters and returns every substring, which is not empty.