split

Common
fun split(input: CharSequence, limit: Int = 0): List<String>

Splits the input CharSequence around matches of this regular expression.

Parameters

limit

Non-negative value specifying the maximum number of substrings the string can be split to. Zero by default means no limit is set.

fun split(input: CharSequence, limit: Int = 0): List<String>

Splits the input CharSequence around matches of this regular expression.

Parameters

limit

Non-negative value specifying the maximum number of substrings the string can be split to. Zero by default means no limit is set.

JS
fun split(input: CharSequence, limit: Int = 0): List<String>

Splits the input CharSequence around matches of this regular expression.

Parameters

limit

Non-negative value specifying the maximum number of substrings the string can be split to. Zero by default means no limit is set.

Native
fun split(input: CharSequence, limit: Int = 0): List<String>

Splits the input CharSequence around matches of this regular expression.

Parameters

limit

Non-negative value specifying the maximum number of substrings the string can be split to. Zero by default means no limit is set.